In this i am trying to perform crypto operations using microservices
In this project we will going to perform crypto operation using our crypto microservices. We will going to use following things:
- API Gateway (Zuul) : Gateway for all the services. All request must come here
- Load Balancer (Ribbon) : Optimize usage of our sevices
- Service Discovery (Eureka) : For discovering our services
- Spring cloud Config Server : To store all common config
- Authentication using JWT : JWT for authentication
- Database (mysql) : To store user credentials and roles using hibernate
- Feign Client : To communicate with other microservices
- Hystrix : For Fault tolreance our services
Component of our project are:
We will going to have all this component implemented step by step.
Authentication Service: auth-service
Config Server: config-server
Naming server: service-discovery
API Gateway: api-gateway-service
Crypto Services: crypto-services
I have used following ports:
PORTS used
Services Ports
API Gateway 8765
Eureka Server 8761
Config Server 9999
Auth Service 8899
Crypto Serice 8889
Steps to use:
- Create a first user in the database using file
- Send a token request to the server as defined here
- Once you have token either you can create a new user as defined here or send a crypto request as defined here
In future, I will try to implement Sleuth for logging as well.