Why might a method with @Transactional not create a transaction?
Java
package ru.tbank; @Service public class OrderService { @Autowired private OrderRepository orderRepository; @Autowired private CacheService cacheService; public Order findOrder(Long orderId) { Order order = cacheService.get(orderId); if (order == null) { order = orderRepository.findById(orderId).orElse(null); if (order != null) { cacheService.put(orderId, order); } } return order; } }
Can the argument of a method be considered a temporary variable inside a function?
10 application handlers take tasks from the database. How to prevent two instances from taking the same task?
How else can the problem be solved without anyMatch?
Were the requirements for a specific feature detailed or were you only given business requirements, and you chose the solution yourself?
What measures have you taken to transition to a new technology stack?
What are the differences between the rebase and merge commands when combining branches in Git?
Are there any restrictions on indexes? What types of indexes exist (hash, B-tree) and when should they be used?
What to do if the database is loaded at 99% CPU? How to analyze the incident?
If the database switches to a non-relational one, is Debezium available for different databases?
Why were 60 consumers used for 30 partitions?
How do you check the quality of the code before review? Do you use analyzers?
What happens when the old PostgreSQL master comes up after a failure? How is consistency ensured?
How does a Docker container differ from a virtual machine?
Is mastering new technologies an important aspect of candidate evaluation?
What is DLT?
Do you have requirements for certificate-based authentication in PSB integration interactions?
Where can request scope be useful?
Can you explain what nested classes are in programming?