Bu proje, Order, Product ve Inventory servisleri ile bir API Gateway içeren basit bir mikroservis mimari uygulaması. Proje Docker ile çalışmakta ve database olarak PostgreSQL ile MongoDB, mikroservis iletişimi için Apache Kafka kullanmaktadır. Fault tolerance için de Resilience4j kullanılıyor.
| Servis | Açıklama | Veritabanı |
|---|---|---|
| Order | Sipariş yönetimi | PostgreSQL |
| Product | Ürün yönetimi | MongoDB |
| Inventory | Stok yönetimi | PostgreSQL |
| API Gateway | Tüm servisleri tek noktadan handle eder | --- |
- Spring Boot (Java)
- Database PostgreSQL ve MongoDB
- Docker
- OpenFeign (http client kütüphanesi)
- Apache Kafka (mikroservisler arası mesajlaşma)
- Resilience4j (fault tolerance)
- Maven (her servis için)
Projeyi klonladıktan sonra ana dizinde:
docker-compose up -dSırayla
- DemoApplication
- InventoryServiceApplication
- OrderServiceApplication
- ApiGatewayApplication