Java
Will you be in Moscow or Saint Petersburg during the registration process?
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; } }
How to lock a database record so that no one else can make conflicting changes?
Is Moscow or another location relevant for you?
Tell us about your experience: in what major and interesting tasks, especially integration ones, have you participated?
Are you considering registration as an individual entrepreneur?
How does the nested @Transactional annotation work if the inner method is in another service?
In what form did the requirements for the tasks come to you?
How actively are you currently considering offers? Are there offers, deadlines, or are you only at the technical stage?
What happens if cacheService crashes or Redis returns a timeout, and how to handle it?
Have you had to write unit and integration tests, and how did you do it?
Briefly tell about your work experience.
If the cache times out and requests start flooding the database, how can you reduce the load on the database?
Have you worked with PostgreSQL and query optimization?
Provide an example of a large business task or integration that you completed entirely on your own.
What problems can arise when returning a JPA entity from a repository and how to avoid them?
If monitoring shows that the database has started responding slowly, how will you investigate the cause?
What technologies and stack have you most frequently worked with?
How do you analyze execution plans and optimize PostgreSQL queries?
What grade of position are you considering?