What type of index do you recommend for searching JSON columns in PostgreSQL?
Java
Describe the basic hierarchy of exceptions in Java. What are checked and unchecked exceptions?
How is the duplicate check implemented technically — as a separate verification process before insertion or something else?
What is Spring Actuator? What methods (probes) are used to check the application context state for pod balancing in Kubernetes/OpenShift?
What is idempotency and how can it be ensured?
What are microservices and why are they popular? Should they always be used?
What is the Java Memory Model? How does it affect multithreading?
What other scaling methods exist besides horizontal?
Into which microservices should you split an online store?
Have you encountered the problem of distributed transactions? Tell us about the Saga pattern.
Why did you have to engage in SQL optimization, and how were responsibilities divided between data engineers and developers?
Refine the method so that it returns an error upon overflow. Demonstrate with an example of adding two numbers.
Tell about the hierarchy of collections in Java.
How will the service learn about new user orders? How will the data about the number of orders be stored and updated?
How to display all departments including Accounting? What will be in max_salary for Accounting?
What methodology are you used to working with? How do you evaluate tasks and how often do you deploy to production?
There is a backend and a UI. The stack is standard: Java, Spring, React, Postgres. Task: Design a REST endpoint that needs to fetch data from 3 sources and deliver it to the UI, while ensuring maximum possible throughput and minimal response time (max/min criteria based on our specific conditions, since essentially, there is no silver bullet here and we need to find a compromise). It is known that the expected peak RPS for this REST endpoint will be 200. Details about the sources: 1st source - our database, query takes about 3 seconds. 2nd source - a related REST service, degrades to 2 minutes under 100 RPS, in normal mode responds in 5 seconds. We cannot change the behavior of this source on their side. 3rd source - a related REST service, randomly (no discernible pattern) returns 503, in normal mode response takes 10 seconds. We cannot change the behavior of this source on their side.
Как обеспечить exactly-once семантику в Kafka?
Are we talking about metadata or transactional data when optimizing objects?
What is the purpose of the volatile keyword?