r/code • • Sep 30 '23

API Microservices architecture: two months in, looking for feedback

Hello everyone,

I'm new to microservices architecture, but I've been working on a project for the past two months to learn more and implement it in my own code. I've based my work on some of the architectures that I've seen on the internet, and I'm now looking for feedback from the community.

  • Devices collect data and send it to the API.
  • The API acts as a single point of entry for external users to interact with the system.
  • The Gateway routes API requests to the appropriate microservices.
  • Microservices communicate with each other using a registry server to discover each other's locations.
  • GitHub is used as a central repository for configuration data.
  • The Actuator provides monitoring and health information about the system.

I'm particularly interested in feedback on the following:

  • Is my architecture sound?
  • Are there any obvious areas where I can improve?
  • Are there any specific technologies or patterns that I should be using?

Any feedback that you can give me would be greatly appreciated.

Thanks

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/Khchimi_Othmen Sep 30 '23

As an internship student working on a huge system, I think I should keep the registry server and RabbitMQ. There is no contradiction between RabbitMQ and a registry server. I use RabbitMQ for asynchronous messaging and for simple synchronous messaging I use HTTP/REST.

2

u/[deleted] Sep 30 '23

I posted above how I do things.. but curious why both registry server and rabbitmq? Your services can just pub to a topic/queue.. and it works or it doesnt. Whats the benefit of the registry server in this architecture? Do you have your front gateway APIs call other Rest APIs?