* Where one project containing all the modules (huge code base), that is called Monolithic application. Problem: * Due to this, if we want to change any small piece of code, you need to do full round of testing. And we need to down the whole system. * To avoid this they introduced Microservice Architecture (Heterogenous)
* If you want to inject a one bean into another bean that is called dependency injection. * Using the spring IOC container we can do easily just adding @Autowired annotation.
Microservices: -------------- What is Monolithic Application: ------------------------------- * All type of components included in the single project, That is called Monolithic application. Eg. College Project (Including all below modules in the single project): ->Student ->Faculty ->Examination ->Result ->Address What is Microservice: -------------------- * Micro -> small * Creating multiple small services * So here we will create all the component as a seperate application (micro services). * So here creating multiple spring boot projects. Eg: (Below all creating as seperate application): ->Student ->Faculty ->Examination ->Result ->Address Advantages: * Testing -> If you change any one microservice you can test that alone and you can deploy that alone. So nothing else get down * Scalable -> Any specific applicaiton we can scalable. Eg. at the time of result , we can scale up the result micorserive up and others down. * Loosely ...
Comments
Post a Comment