Golang
What did you do at your last job?
Why does a B-tree index have a complexity of O(log n)?
How to configure Kafka for 100 application instances with 10 threads each so that no one blocks each other?
What do you start from in terms of income level?
Tell me about a difficult task you had to work hard on. What was the main difficulty?
Slice task: what will different append and slice operations output? (task with slices a, b, c, d)
What do you know about us as a product?
Tell about your experience with programming languages other than Go, and how do you like Go itself?
Was Redis in one data center, and everyone accessed it?
Which message brokers have you used?
Have you interacted directly with Kubernetes?
What do you know about the sync/atomic package?
How was the soft hold of remaining reservations organized with final reconciliation upon confirmation of the booking?
How quickly can you start at a new place if you receive an offer?
func (r *PayoutRepository) Payout(advertiserID, partnerID string, amount float32) error { advertiser, err := r.find(advertiserID) // add transaction if err != nil { return err } partner, err := r.find(partnerID) if err != nil { return err } advertiser.Balance -= amount // protect SELECT FOR UPDATE partner.Hold -= amount partner.Balance += amount if err := r.save(advertiser); err != nil { return err } if err := r.save(partner); err != nil { return err } r.totalPayouts++ return nil }
What are indexes and what are they used for?
// Task 3 // Describe what problem this code solves // What problems are there in this solution? // How would you rewrite this code? var c int type Trace struct { // Some fields here } type Sender interface { Send(Trace) } func Do(sender Sender, tr Trace) { c++ if c == 100 { sender.Send(tr) c = 0 } }
Is there the same restriction in RPC on the presence of a resource in the path as in REST?
Will you use something to solve problems?
What delivery guarantees can a message broker provide? At most once, at least once, exactly once.