Sobes.tech

What is WAL in PostgreSQL and what is it used for?

Middle+
Сбербанк
31

What happens if the Kafka consumer pod crashes during message processing before committing the offset?

Middle+
Сбербанк
31

What is `threading.RLock`?

Senior
Платежное Решение
31

Why can threads in Python be useful for I/O-bound operations despite GIL?

Senior
Платежное Решение
31

What message brokers do you know and how do Kafka and RabbitMQ differ?

Senior
Платежное Решение
31

Two independent workers simultaneously check that there are more than three on-duty doctors, and each takes leave, violating the invariant. What is this problem and how to solve it?

Senior
Платежное Решение
31

What is `SELECT FOR UPDATE`?

Senior
Платежное Решение
30

Which services interacted via REST, and which through Kafka?

Senior
Платежное Решение
30

If there are three services and one of them is run in two replicas, how many GIL instances exist?

Senior
Платежное Решение
29

Where should the repository interface (port) be declared: in the logical/application layer or in the infrastructure?

Senior
Платежное Решение
28

How do a monolith and a distributed monolith differ?

Senior
Платежное Решение
28

What is a mutex?

Senior
Платежное Решение
28

What exactly is expected during a blocking operation, which makes threads advantageous in I/O-bound scenarios?

Senior
Платежное Решение
28

Why was asynchronous programming and lightweight threads/coroutines invented?

Senior
Платежное Решение
28

Как работает hash-индекс в PostgreSQL?

Senior
Платежное Решение
28

app = FastAPI() def get_db(): db = SessionLocal() try: yield db finally: db.close() def heavy_text_parser(file_id: int, db: Session): # Parsing a file that takes 5 minutes parse_and_save(file_id, db) @app.post("/upload") async def upload_file( background_tasks: BackgroundTasks, db: Session = Depends(get_db) ): file_id = save_file_to_db(db) db.commit() background_tasks.add_task(heavy_text_parser, file_id, db) return {"status": "parsing started"}

Middle+
Сбербанк
27

What level of transaction isolation is sufficient for a scenario with two doctors and a violation of the minimum on-duty doctors constraint?

Senior
Платежное Решение
27

async def get_user(user_id: int, db: AsyncSession): try: user = await db.get(User, user_id) return user finally: await db.close() return None a = await get_user(15, db) # a?

Middle+
Сбербанк
27

How to protect the POST payment acceptance endpoint from repeated client requests during network failures?

Middle+
Сбербанк
27

Есть ли downtime при Rolling Update?

Senior
Платежное Решение
27
/546