Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

doctoreto | دکترتو

Status

📜📞🔧❌

Senior Back-End Developer (Golang)

Interview Process

flowchart LR
    sr(Send Resume) --> hr(HR Call) --> ti(Technical Interview) --rejected--x hri(HR Interview) -.-> o(Offer)

Apply Way

Jobinja & Jobvision

Interview Date

  • Sent Resume
    1404.04.09

  • HR Call
    1404.04.10

  • Technical Interview
    1404.04.11

  • Rejection Email
    1404.04.23

Interview Duration

  • Technical Interview
    1 hour

Interview Platform

Google Meet

Technical Interview

  • Tell me about the main challenges you faced in your recent roles.

  • Describe a time when a component (for example, a matching engine) crashed or showed inconsistent behavior involving a message broker. How did you diagnose the problem, fix it, and ensure no data was lost?

  • What mechanisms do you use to make message processing resilient?

    Answer

  • How did you implement the transactional outbox pattern in your system? Explain how it works and how it guarantees reliable message delivery and data consistency.

  • Do you have experience with database operations such as backups, replication, clustering, failover, and recovery?

  • Which monitoring and observability tools have you used (metrics, tracing, logs)? Describe how you use them to find and diagnose bugs.

  • When you work with logging, what things do you consider important and what best practices do you use?

    Answer
    Priorities: signal-to-noise (avoid spammy logs), structured logs (JSON), consistent schema, correlation/request IDs, accurate timestamps, proper log levels, redact sensitive data, centralized collection, retention & sampling, and cheap canonical log lines for each request. elastic

  • What is eventual consistency in the context of databases and distributed systems?

    Answer
    a replication model where updates will propagate and replicas converge eventually (if no new updates), so reads may be stale briefly but become consistent over time. Practical trade-off: higher availability and latency at the cost of short-term anomalies. Wikipedia

  • What is consistency?

    Answer
    In database systems, consistency (or correctness) refers to the requirement that any given database transaction must change affected data only in allowed ways. Any data written to the database must be valid according to all defined rules, including constraints, cascades, triggers, and any combination thereof. Wikipedia

  • Which tools and mechanisms help keep a system consistent?

    Answer
    Common techniques: distributed consensus (Raft/Paxos), transactional guarantees (ACID), two-phase commit, idempotency + deduplication, transactional outbox and ...

  • Can you list and explain common database isolation levels and the trade-offs between them?

    Answer

  • Have you taken a course or done projects on concurrent/parallel systems?

  • Is there a semaphore concept in Go?

    Answer
    Go has no built-in semaphore type, but a counting semaphore is commonly implemented with a buffered channel or a small wrapper around sync primitives. sync provides low-level primitives; higher-level concurrency is often done with channels.

  • If you had to implement Go channels from scratch, how would you design them?

    Answer

  • How are goroutines blocked and woken up? Who handles that?

    Answer
    The Go runtime scheduler handles blocking/wakeup. Goroutines are parked when they wait on channels, locks, I/O, timers, or syscalls; the runtime keeps them on wait lists and moves them to runnable queues when the event occurs (timer, channel ready, I/O complete), then schedules them onto OS threads.

  • How many goroutines can you create(open)?

    Answer
    Millions are possible, limited by memory (heap + per-goroutine stack) and scheduling overhead. GOMAXPROCS controls parallel workers/OS threads (parallelism), not the total goroutine count. Real limit depends on your workload and memory profile. ardanlabs

  • Have you heard the term garbage collection pressure? What causes it and when does the GC react?

    Answer
    Yes. GC pressure = conditions that make the garbage collector run frequently or do much work (many short-lived allocations, large heap growth, many reachable objects). The runtime triggers GC based on heap growth/threshold heuristics; more allocations → faster heap growth → earlier collections. godev

  • How can you reduce GC pressure in Go?

    Answer
    Reduce allocations and object lifetimes: reuse buffers, pool temporary objects, use sync.Pool for short-lived objects, avoid unnecessary boxing/heap escapes, prefer stack/value types when safe, batch work to reuse memory. Measure with pprof and trace before optimizing. victoriametrics

  • Have you used object pools such as sync.Pool?

  • What are the main benefits of gRPC?

    Answer
    High performance (HTTP/2 multiplexing), low latency, built-in streaming (client/server/bi-directional), strongly typed contracts via protobuf and code generation, language polyglot support, and built-in interception hooks (auth, load–balancing). Good for microservices and low-latency RPCs.

  • Any questions?

بیشتر سوالا از رزومه‌م بود و کارهایی که کرده بودم.

Score

8/10

مصاحبه خوبی بود و مصاحبه‌کننده بسیار مودب و باتجربه بود. ردفلگی ندیدم. انتظار رفتن به مرحله بعد رو داشتم.