Skip to main content

Posts

Featured

Building microservices with a gateway and Eureka, like your Zayka project

Microservices sound simple: split one big app into small services. In practice, the first week usually goes on making the services find each other and start up at all . Here is the setup I used in my own project, ZaykaHub , a food ordering platform with user, restaurant, item, order and payment services, and the problems I had to fix along the way. The basic shape Discovery server (Eureka), port 8761. A phone book: every service registers here, and others look it up by name. API gateway, port 8080. The single front door. Clients call only the gateway, which forwards each request to the right service. Business services : user-service, item-service, order-service, payment-service. Each has its own database and runs on its own port. The client never needs to know where order-service is running. It calls /api/orders on the gateway and the gateway works out the rest. Step 1: The discovery server Add spring-cloud-starter-netflix-eureka-server , then: @SpringBootAppli...

Latest posts

Kafka tips from banking work

How to upgrade old Java / Spring Boot apps. Many companies need this done.