Event-Driven Architecture (EDA) vs API-Driven Architecture (ADA): Which Performs Better in Microservices?

Alam Rahmatulloh, Fuji Nugraha, Rohmat Gunawan, Irfan Darmawan, Erna Haerani, Randi Rizal · 2024

Monolithic application architectures are widely abandoned and replaced by microservice architectures that are more flexible and able to adapt to rapid technological changes. However, HTTP synchronous protocol-based data communication or API-Driven architecture (ADA) microservices commonly used in microservice architectures can reduce system performance when the number of services increases. To support a growing business, the scalability aspect of microservices needs to be considered. The solution in this study uses asynchronous data communication between event-based microservices or Event-Driven Architecture (EDA). Container technology is applied in this study to support the scalability aspect. Measurements of response time, error rate, and CPU usage were carried out in experiments to determine the performance of microservice architectures by implementing ADA and EDA-Driven data communication. The main problem in this study, which of the two services has the best performance? Testing and analysis were conducted in this study to reveal the comparison of their performance. The experimental findings in this study indicate that the response time of microservice architecture for EDA-Driven data communication is 30% faster than ADA-Driven data communication. There was a decrease in error rate of about 70% and a decrease in CPU usage of about 4% when EDA-Driven data communication was implemented in microservice architectures, compared to ADA-Driven data communication.

Read the paper · More papers on PaperTik