Sobes.tech

What message format should be used in Kafka for high-load services: JSON or binary?

Senior
142

What is a .env file and what is it used for?

Middle+
141

Tell about the product reservation system: how did you prevent double sales using Redis?

Senior
140

How to organize interaction between frontend and backend for real-time notifications?

Senior
138

Tell us about Circuit Breaker: how was the solution arranged, which services were targeted, what was in the fallback?

Senior
137

func updateV1(px *int) { x2 := 20 px = &x2 } func updateV2(px *int) { *px = 20 } func main() { x := 10 updateV1(&x) fmt.Println(x) updateV2(&x) fmt.Println(x) }

Senior
137

Tell about the asynchronous report generation system using Kafka. What was the asynchrony?

Senior
135

Is it possible to optimize so that the res array is on the stack rather than on the heap? What needs to be done for this?

Senior
135

What is meant by request optimization when reducing API response time from 2 seconds to 300 ms?

Middle+
133

Tell about master-slave replication — when you refer to master, when to slave?

Middle+
131

How did the data from calculations get into 1C?

Middle+
129

You are a writer, running your own mini blog where you publish articles. Users (readers) of your blog, after logging in, can view/read them. It is necessary to implement a functionality to count unique views per day for each article. Functional requirements: - Today's statistics: The author can see how many unique users viewed their article today (data is accumulated in real-time). - Past days' statistics: The author can see statistics for any past day (for example, yesterday). Technical constraints and conditions: - The application runs on 1 server (1 pod) - Storage in memory - Time in UTC0

Senior
129

How did you ensure the absence of duplicate messages in Kafka?

Senior
128

You see that there is no index, the table is large. How will you add an index?

Senior
127

How can you intentionally cause a memory leak in Go? What cases lead to leaks?

Senior
125

Will the array res be on the stack or on the heap, considering that it is passed to the functions double and append?

Senior
123

Will the optimizer always use the created index?

Senior
121

How was the addition and removal of rules handled if it was a large switch-case?

Middle+
94
/7