product service customer service Communication Channel (HTTP protocol / Messaging services like RabbitMQ ,Kafka) recommendation service customer db user db cart db product db payment db
configurations. • Easy to manage when number of microservices increases • Easy to track configurations changes and act in case of breaking changes due to version control
point of contact for outside services • It’s a unique gateway to client , client make calls to API gateway and gateway in turn delegate requests to required microservices. • Obviously it can be used to aggregate responses from different microservices and send a unified response. • Apart from aggregating responses it can also be used for rate limiting ,authorization and authentication ,fault tolerance and any custom filter required to be executed during a service call.
services • Each request performs more than one task like database operation, messaging etc • Difficult to troubleshoot and understand behaviour of application
of Bean 3. Allow actuator endpoints a. management.endpoints.web.exposure.include=* b. management.security.enabled=false 4. Use git to update files 5. Use actuator/refresh endpoints
b. Unzip the tar i. tar xzf kafka_2.11-2.4.0.tgz 2. Run Zookeeper a. bin/zookeeper-server-start.sh config/zookeeper.properties 3. Run Kafka a. bin/kafka-server-start.sh config/server.properties