#clearyourconcepts

Microservices

31. How to maintain ACID transactions in Microservices?ACID is an acronym for four primary attributes namely atomicity, consistency, isolation, and durability ensured by the database transaction manager.  In a distributed system involving multiple databases, we have two options to achieve ACID compliance:  2 Phase Commit should ideally be discouraged in microservices architecture due to its […]

Microservices Read More »

Microservices

11. How can we test the Microservices based architecture?One should have unit and integration tests where all the functionality of a microservice can be tested. One should also have component based testing.One should have contract tests to assert that the expectations by the client is not breaking. End-to-end test for the microservices, however, should only

Microservices Read More »

Microservices

1. What are Microservices?Microservices is an architectural style which structures and application as a collection of loosely coupled, independently maintainable, testable and deployable services which are organized around business capabilities. If you have a business focus and you want to solve a use case or a problem efficiently without the boundaries of technology, want to scale

Microservices Read More »

Spring

41. Differentiate between WebClient and WebTestClient?The difference between the Web client and Webtestclient can be stated as follows. Web client Webtestclient Web client acts as a reactive client who performs non-blocking HTTP requests.  Webtestclient also acts as a reactive client that can be used in tests. It can handle reactive streams with backpressure. It can

Spring Read More »

Spring

21. What is Annotation based Container configuration? How can we turn on annotation wiring in Spring framework?Annotation-based container configuration is an alternative to XML setups. Rather than using XML for describing a bean wiring, the developer moves the configuration to the component class by using annotations on the appropriate class, field, or method declaration.Because annotation

Spring Read More »

Spring

11. What are the benefits of STS?We can install plugins into Eclipse to get all the features of Spring Tool Suite. However, STS comes with Eclipse with some other important kinds of stuff such as Maven support, Templates for creating different types of Spring projects, and tc server for better performance with Spring applications. 12.

Spring Read More »

Spring

1. What is Spring Framework? Spring is one of the most widely used Java EE frameworks. Spring framework core concepts are “Dependency Injection” and “Aspect-Oriented Programming”.Spring framework can be used in normal java applications also to achieve loose coupling between different components by implementing dependency injection. We can perform cross-cutting tasks such as logging and

Spring Read More »

Core Java

21. What is Super in java?Super is a keyword that is used to access the method or member variables from the superclass. If a method hides one of the member variables in its superclass, the method can refer to the hidden variable through the use of the super keyword. In the same way, if a

Core Java Read More »

Interview Preparation

Welcome to our comprehensive guide on Interview Preparation for Spring, Spring Boot, and Java! If you’re preparing for an interview for a Java development position or a role that involves working with Spring and Spring Boot frameworks, you’ve come to the right place. In this page, we will provide you with valuable insights, tips, and

Interview Preparation Read More »

Scroll to Top