Skip to content

Free beta

Lexicon26 conceptsRatings saved on this device

Engineering Glossary & Architecture Lexicon

Explore the concepts used in real engineering teams, rate your understanding, compare architectural trade-offs and jump into the simulation stages that use them.

Index volume
26
Concepts
Applied
0
Self-rated
Conceptual
0
Self-rated
New to me
0
Not rated
26
Rated
0%

Architectural trade-off matrix

At-least-once vs exactly-once

At-least-once + idempotent writes

  • Duplicates possible on retry
  • Simple offset handling
  • Dedupe at the sink (MERGE)
for batch in consumer:
    merge_into_warehouse(dedupe(batch))
    consumer.commit()  # after write

Exactly-once processing

  • One committed effect within the guaranteed boundary
  • Kafka transactions can coordinate records and offsets
  • External sinks need compatible guarantees; cost depends on design
producer.init_transactions()
producer.begin_transaction()
producer.send(out, rec)
producer.send_offsets_to_transaction(...)
producer.commit_transaction()

Verdict: For this pipeline, at-least-once delivery with verified idempotent writes is a practical candidate. Neither approach automatically guarantees correct external warehouse state; compare failure boundaries, side effects and operational constraints.

Streaming vs micro-batching

Micro-batching

  • Latency: minutes
  • Scheduled job, easy retries
  • Cheap; small teams can run it
# every 5 min (Airflow)
load_new_files('s3://bids/', since=last_run)
run_sql('MERGE INTO fact_bids ...')

Stream processing

  • Latency: seconds
  • Always-on, stateful jobs
  • Needs 24/7 on-call expertise
env.from_source(kafka)
   .key_by(lambda b: (b.exchange_id, b.bid_id))
   .window(Tumbling.of(10s))
   .reduce(latest).sink_to(warehouse)

Verdict: If the SLA is in minutes, micro-batching usually wins on cost and reliability.

Your proficiency · self-assessed, saved on this device

26 of 26 concepts

Sign in to suggest a term or phrase for the glossary.