Simplifying and Streamlining API Interactions with Feign in Spring Boot Microservices

Authors

  • Srinivas Adilapuram Senior Application Developer, ADP Inc, USA Author

Keywords:

Spring Boot, Microservices, Feign Client, API interactions, Ribbon, Hystrix

Abstract

Traditional approaches to managing API interactions within Spring Boot microservices often involve writing verbose code for handling HTTP requests that lead to potential errors and maintenance challenges. The study explored the use of Feign Client as a solution, a declarative web service client that simplifies API calls by abstracting them into Java interfaces. By implementing Feign, developers can reduce boilerplate code, enhance readability, and improve maintainability. The researchers found that Feign's integration with Ribbon and Hystrix further strengthens microservice resilience through load balancing and circuit-breaking capabilities. The paper concluded by recommending Feign for standardizing API calls, advocating its combination with Spring Cloud for dynamic service discovery, and enabling resilience features with Hystrix fallback methods.

References

Richardson, C. "Microservice Patterns." Manning Publications, 2018.

Feign official documentation. https://cloud.spring.io/spring-cloud-openfeign/

Soni, M., & Sharma, R. "Microservices with Spring Boot." Packt Publishing, 2017.

Yoo, C., Lee, J., & Park, S. "A Comparative Study of RESTful Communication Styles in Microservice Architecture." International Journal of Software Engineering and Its Ap-plications, 13(1), 2019.

Stillwell, M. "Microservices vs. Monolithic Architecture." O'Reilly Media, 2016.

Kumar, A., & Sharma, S. "Improving Code Readability in Microservices using Feign Client." International Journal of Computer Science and Information Technologies, 10(3), 2019.

Chen, L., Li, X., & Wang, Y. "Dynamic Service Discovery and Load Balancing with Spring Cloud Netflix in Microservice Architecture." IEEE Access, 7, 2019.

Wolff, E. "Microservices: Flexible Software Architecture." Addison-Wesley Profes-sional, 2016.

Downloads

Published

17-02-2021

How to Cite

Srinivas Adilapuram. (2021). Simplifying and Streamlining API Interactions with Feign in Spring Boot Microservices. International Journal of Computer Science and Information Technology Research , 2(1), 27–37. https://ijcsitr.com/index.php/home/article/view/IJCSITR_2021_02_01_004