Spring Flashcards

1
Q

What are spring beans?

A

Usually, Spring Beans are Java objects which are managed by the Spring container.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

why do auditing with hibernate envers

A
Envers is a mature auditing module provided by Hibernate. It is highly configurable and lacks the flaws of the pure JPA implementation. Thus, it allows us to audit the delete operation, as it logs into tables other than the entity's table.
The Spring Data JPA approach abstracts working with JPA callbacks and provides handy annotations for auditing properties. It's also ready for integration with Spring Security. The disadvantage is that it inherits the same flaws of the JPA approach, so the delete operation cannot be audited.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does Spring AMQP work

A

While using messaging frameworks like rabbitmq where we sends messages across services, by default spring amqp re-queue’s any messages that haven’t been processed

This process can go on forever. Instead we can set re-queue as false at listener level or throw a exception

In order to better handle these failed messages we have the dead letter q approach

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are dead letter Q

A

A Dead Letter Queue (DLQ) is a queue that holds undelivered or failed messages. A DLQ allows us to handle faulty or bad messages, monitor failure patterns and recover from exceptions in a system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly