Posts

Showing posts from March, 2018

Stubbing Netflix OSS Eureka for local development of microservices

Image
Why we need to stub all other microservices when developing a microservice First, I will go with examples. Here is why we need stubbing with microservices. When we develop a micro-service, there may be around 20 other dependent micro-service. If you follow micro-service architecture properly then for large projects, you will definitely face this issue. That is why you read this post. Without using stubbing, when developing a single micro-service you have to setup the developing micro-service, IDE and run the micro-service in debug mode. Beside, you will not be able to properly run the development micro-service because you will be needing Zuul, Eureka to be run on local as well as all other dependent microservices (around 20 other microservices). What do you think ... My latest laptop got 8 cores CPU, 16GB RAM and it took 99.5% of both of them. And you cannot work on any other. Temporary solution would be to hard code the development micro-service to have all the depende