Is it always necessary to use a microservice architecture? What is it?
Java
How do you accept HTTP requests in a Java application? What options are there?
What do we have on hand within the interceptor method? What parameters are available?
How to protect against mutation through getter (returning a copy of the list)?
Explain the concept of strings that cannot be changed after their creation.
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.
What are the alternatives to Spring that you know?
Tell me about the memory structure in JVM — what are the segments, how does it work?
What is the purpose of using Stream API in repositories?
Tell us about your last project and what you did there.
Как решить проблему non-repeatable read и дедупликации на стороне консьюмера?
Tell us about transaction isolation levels and the anomalies they address.
Where can a NullPointerException occur in the getTagsOfAuthorsBooks method?
Has there been experience in writing technical documentation, instructions, guides, runbooks?
For what tasks have you used agents according to your experience?
How do you see your role in a team? What is important to you in teamwork?
How do you feel about modifying already completed tasks and refactoring?
Have you used Criteria API and Specification API in JPA? What are they used for?
//Given an array of numbers where all numbers except one have a pair, //find the number that appears only once // // // <= [1, 0, 3, -2, 9, 9, 1, -2, 0] // // => 3 int find(int[] arr){ Map<Integer,
What are your salary expectations?