This is a app (conference-app) sample to microservices with NodeJS.
Here receive the requests and call the services regitered.
Project: service-registry
To register: PUT|DELETE /register/:servicename/:serviceversion/:serviceport
To use service: GET /find/:servicename/:serviceversion
Return service data:
{
"timestamp": 1552334467,
"ip": "[::1]",
"port": "3009",
"name": "service-1",
"version": "1.2.0",
}
or
{
"result": "Service not found"
}
The service expire.
Project: feedback-service
Project: speakers-service
PUT <SERVICE-REGISTRY-HOST>/register/${config.name}/${config.version}/${server.address().port}
DELETE <SERVICE-REGISTRY-HOST>/register/${config.name}/${config.version}/${server.address().port}
- Closed State
- Circuit Break Control
-
Cache and Cache Images (key = requestMethod + requestURL)
This example use the RabbitMQ
- Install server:
brew install rabbitmq
- Install client:
npm i ampqlib
- addEntry()s: FeedbackService