-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpringIOC
69 lines (39 loc) · 1.77 KB
/
SpringIOC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
AOP Concepts
https://medium.com/@toimrank/spring-boot-aop-with-example-a2757e389d0b
Spring boot Actuator
https://medium.com/@toimrank/spring-boot-actuator-fc00fc7c306b
Securing the Microservices
OAuth
JWT
JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object.
Exception Handling in Spring
@ExceptionHandler - For the specific class
@ControllerAdvice - It is used for global handling of the Exception in the Spring
@QueryParam is a JAX-RS framework annotation and @RequestParam is from Spring.
-------- Load Balancing at client side -------
Client Side Load Balance
Feign Client
Round Robin, Eureka, API
service to service communication
make a interface
@Controller is used to declare common web controllers which can return HTTP response but @RestController is used to create controllers for REST APIs which can return JSON.
--------- Rest Template -------
Rest Template
Outside the domain
AutoWired
What are the SOLID principles of object-oriented design?
Single responsibility.
Open/closed.
Liskov substitution.
Interface segregation.
Dependency inversion.
---------- Cloud Watch ----------------------
---------- SAGA Design Pattern
2 Phase Commit
Service Discovery -- Eureka Server
Check the Port and ivve response
In summary, while both @Controller and @RestController are used for handling HTTP requests,
@Controller is typically used for traditional web applications where views are rendered,
while @RestController is used for building RESTful APIs where the response is data-centric and doesn't involve rendering views.
The choice between them depends on whether you're building a web application with views or a RESTful API that returns data.
Async