What are the ways to ensure idempotency?
Java
Can you explain the concept of IoC container in Spring and its role in dependency management?
What methods and approaches are used to identify the causes of system performance degradation as load increases?
What does the @Transactional annotation provide in this context? Will it help if an external service fails?
Can you explain how the memory model works in Java and what are its main principles?
How to understand that there is a connection pool problem? How does it manifest for an application?
How do you analyze execution plans and optimize PostgreSQL queries?
What could be the reasons for low database utilization but slow application?
What is the purpose of SELECT FOR UPDATE? What level of locking does it provide? Are there weaker options?
The marketplace system slowed down under load. Suspecting a database issue. What will you look for?
What situations can lead to a ConcurrentModificationException in a single-threaded environment?
What methods exist for checking cache contents during an error in a service?
How to make sending invoices to an external system more reliable? So that when the payment service is unavailable, the client can still reserve a seat and pay later (within 10 minutes).
How to lock a database record so that no one else can make conflicting changes?
How to make parallel calls to multiple services to generate a report?
How can you guarantee the accuracy and consistency of data during simultaneous crediting and debiting operations without changing transaction isolation level settings?
Can you explain what Spring is and what it is used for in Java development?
ArrayList vs LinkedList for sequential iteration over 100 million elements — which is preferable?
What approaches can be used to improve the efficiency of a service that performs four independent HTTP requests to different systems simultaneously?
What can lead to a slowdown in data insertion into a database after creating indexes?