π± Spring Boot β Dependency Injection (DI)
π± Spring Boot β Dependency Injection (DI) 1οΈβ£ What is Dependency Injection? Dependency Injection (DI) is a design pattern in which the dependencies of a class are provided from…
π± Spring Boot β Dependency Injection (DI) 1οΈβ£ What is Dependency Injection? Dependency Injection (DI) is a design pattern in which the dependencies of a class are provided from…
π± Spring Boot β Controller Layer Annotations (Part-1) 1οΈβ£ @Controller πΉ What is @Controller? @Controller indicates that a class is responsible for handling incoming HTTP requests. It is a…
π± Spring Boot β Bean and Its Lifecycle 1οΈβ£ What is a Bean? A Bean is a Java object that is created, managed, and destroyed by the Spring IoC…
1οΈβ£ What is Maven? Maven is a build automation and project management tool used primarily for Java and Spring Boot applications. π― Problems Maven Solves Build generation (compile, test,…
Project Setup & Layered Architecture π 1. Introduction to Spring Boot Spring Boot is a framework built on top of Spring Framework that simplifies application development, configuration, and deployment. π…
1οΈβ£ Servlet and Servlet Container πΉ What is a Servlet? A Servlet is a Java class that handles HTTP requests and generates HTTP responses. It acts as a bridge between…
What is Event-Driven Architecture (EDA)? In Event-Driven Architecture, services: Produce events when something happens Consume events asynchronously Do not wait for each other π Services are loosely coupled. π Example…
Why Distributed Transactions Are a Problem? In microservices: Each service has its own database Traditional 2PC (XA transactions) donβt scale well High latency & tight coupling π So we use…
Authentication vs Authorization Authentication β Who are you? (identity) Authorization β What can you access? (permissions) πΉ Challenge in Microservices Multiple services Stateless REST APIs Shared security logic Avoid session…
What is Service Discovery? In microservices, service instances: Scale up/down dynamically Change IPs frequently π Service Discovery helps services find each other dynamically without hard-coded URLs. πΉ Types of Service…