How can optimistic locking be ensured for managing concurrent data updates?
Java
How are topics and partitions related in Kafka? Is message order guaranteed across different partitions?
How can you determine that a service restart is due to cache updates caused by OutOfMemoryError?
Given: CREATE TABLE profile ( id BIGSERIAL PRIMARY KEY, nickname VARCHAR, registered_at TIMESTAMP ); CREATE TABLE post ( id BIGSERIAL PRIMARY KEY, owner_id BIGINT REFERENCES profile (id), body TEXT, inserted_at TIMESTAMP, likes_count INT -- number of likes ); CREATE TABLE subscription_count ( profile_id BIGINT REFERENCES profile (id) UNIQUE, followers_count INT, -- number of followers following_count INT -- number of subscriptions ); Requirement: Select all posts published by users who have more than 500 followers.
What are indexes? What is a transaction? What is ACID? What is a foreign key and why is it needed?
Проводил ли ты когда-либо наблюдение за состоянием работы сервиса?
How to add a new column with a default value to a table in production without locks and downtime? PostgreSQL specifics.
SQL task: select profiles with more than 10 posts.
How do B-trees and hash indexes differ in the context of data organization and their search?
What are the main advantages and disadvantages of using ExecutorService in Java?
In what cases and why is the ThreadLocal class used in Java for thread management?
Explain what partial indexes in databases are and in which cases they are used.
What methods can be used to eliminate the problem of regular server reboots caused by OutOfMemoryError?
What type of data structure is an index in a database?
High database utilization — what to suggest: partitioning, sharding?
How are data structures implemented in Java and Kotlin?
Have you received responses to this bank's vacancies in the last six months?
If we have multiple instances of the application, how can we ensure that the same operation from the scheduler is not processed simultaneously by multiple instances?
What system metrics should be monitored during regular service reboots to prevent OutOfMemoryError errors?