Sunday, July 29, 2018

Tips to Carrier Growth

  •  Spend at least  3,4 hours daily for   self  learning ,side projects .
  •  Do side projects. 
  •  Prepare for interviews .
  •  Always  ask yourself   for reason   for  doing things 
  •  How to Become a Great Developer  









References Used :-     How to Become a Great Self-taught Developer? | Ask a Dev

Monday, July 23, 2018

Spring @Component, @Service, @Repository, @Controller Difference

Spring @Component, @Service, @Repository and @Controller annotations are used for automatic bean detection using classpath scan in Spring framework. @Component is a generic annotation. Difference of @Service, @Repository, @Controller with @Component is they are special cases of @Component and used for particular purposes. The difference is just classification only .

For all these annotations (stereotypes), technically the core purpose is same. Spring automatically scans and identifies all these classes that are annotated with “ @Component, @Service, @Repository, @Controller”  and registers BeanDefinition with ApplicationContext.

  • In a multitier application, we will have different layers like presentation, service, business, data access etc. When a class is to be annotated for auto-detection by Spring, then we should use the respective stereotype as below.
    • @Component – generic and can be used across application.
    • @Service – annotate classes at service layer level.
    • @Controller – annotate classes at presentation layers level, mainly used in Spring MVC.
    • @Repository – annotate classes at persistence layer, which will act as database repository.

Sunday, July 15, 2018

Microservices

Why  Should We  Use  Microservices ? 

#  It makes  our system loosely  coupled .
    If  we  need to repair , upgrade particular microservices  , we don't  have to rebuild  entire    application.
# Microservices  are divide based  on business capabilities ,focusing on  single business capabilities (Not like web microservice , data microservice).
# Microservices  communicate  each other  using  well  defined  interfaces  usually  REST or  Messaging queue .
# Microservices data is  federated also . It owns it  own data model . It  helps  to scaling  purposes  when  particular microservice  has huge  load .
#  Independent development .
#  Independent deployment .
#  We use http  or messaging queue for  communicating  with each  microservices .Most techologies support  http  or messaging queue   . 
#  So we  can use different  technologies for different microservices  .
#  Stateless  -  Each pair of  request and response  communication  makes an  independent  transaction .This gives  effortless scaling capability of  microservices .
# One service should not break due to , broke of another service .
# Granular Scaling .


Characteristics of  Microservices

# Organized on business capabilities
# Products  not projects 
# Decentralized governance 
# Decentralized data management

Referencees Used :-  What are microservices?

The AI Driven Software Developer, Optimize Innovate Transform

  The AI-Driven Software Developer: Optimize, Innovate, Transform": AI Transformation in Software Development : Understand how AI is re...