What is the difference between ConcurrentHashMap and Collections.synchronizedMap?
Java
How was your monitoring set up? Did you have to create custom metrics and alerts?
How to properly roll out database migrations without failures? How to delete fields?
What to do with high database utilization? What if the database utilization is low but queries are slow?
Why is iteration over an ArrayList collection with a million elements faster than over other data structures?
Why is NoSQL needed? Why are relational databases insufficient? Examples of usage, advantages, storage structures.
What is the difference between synchronized block and atomics? How does CAS work?
What TTL should be chosen for caching rates if rates change infrequently?
Tell me more about your implementation of CQRS in your case.
What exactly did you tune in Kafka? Which specific parameters did you configure?
If there is data cache, how can you determine that the cause of OOM is specifically due to it?
Deployment problems: errors occur during deployment and disappear afterward. Why?
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; } }
In what situations is the Consumer design pattern used?
In what form did the requirements for the tasks come to you?
How to confirm out of memory in production and what to do about it? How to take a heap dump at the moment of OOM?
How to ensure reliable invoice delivery if an external service might fail?
Tell us about how tasks were distributed in your team and how architectural decisions were made.
Why are you looking for a new job?
What problems can arise when returning a JPA entity from a repository and how to avoid them?