// karawaci.kode v0.1
Backend notes,
framework testing,
real benchmarks.
Catatan teknis dari Lippo Karawaci. Bun + Astro + edge runtime + postgres experiments. Semua kode reproducible, semua benchmark real.
$ bun create astro
✓ Project name: kodekarawaci
✓ Template: minimal
✓ Install dependencies: yes
✓ Initialize git: yes
✓ 84 packages installed [240ms]
$ cd kodekarawaci && bun dev
┃ astro v6.3.7 ready in 1.2s
┃ Local: http://localhost:4321
┃ watching for file changes // posts
view all →-
2026-07-29 · 12 min · prisma / drizzle / orm / nodejs / type-safety / backend
Prisma vs Drizzle ORM untuk Node.js Production 2026
Perbandingan objektif Prisma vs Drizzle untuk Node.js production 2026: DX, type-safety, performa, migrasi, bundle size, dan kapan sebaiknya pilih mana. Lengkap dengan contoh kode dan trade-off tiap pendekatan.
-
2026-07-25 · 12 min · opentelemetry / nodejs / observability / traces / metrics / monitoring
Setup OpenTelemetry di Node.js untuk Monitoring 2026
Tutorial setup OpenTelemetry di Node.js: instrumentasi otomatis, traces, metrics, dan logs, export ke OTel Collector, custom span, sampai contoh Dockerfile. Teknis dan lengkap dengan contoh kode.
-
2026-07-20 · 8 min · observability / grafana / loki / tempo / mimir / monitoring
Observability Stack: Grafana + Loki + Tempo 6 Bulan
Grafana + Loki + Tempo + Mimir di enterprise Indonesia. Log 8TB/bulan, trace 4.2TB, metric 380GB. Cost $640/bulan, MTTR turun 60%.
-
2026-07-19 · 6 min · adr / architecture / documentation / team / engineering-practice
ADR (Architecture Decision Records) Tim 15 Engineer
Implementasi ADR di tim 15 engineer enterprise Indonesia. 84 ADR dalam 2 tahun, 22 superseded, format yang work, dan kapan ADR jadi liability.
-
2026-07-19 · 11 min · typescript / error-handling / result-type / discriminated-union / type-safety / backend
Pola Error Handling TypeScript Modern 2026
Pola error handling TypeScript modern: Result type, discriminated union untuk error, custom error class, dan kapan sebaiknya throw vs return. Lengkap dengan contoh kode dan trade-off tiap pendekatan.
// snippet
view all →73 referensi kode harian · Bash / Go / Java / JavaScript / Python / Rust / SQL / TypeScript
-
2026-07-20 · Rust · Lanjut
Rust tracing + OpenTelemetry export
Setup tracing-subscriber dengan OpenTelemetry export ke OTLP collector. Span otomatis, structured log, distributed trace di Rust.
-
2026-07-19 · Java · Menengah
Spring @Async config dengan ThreadPoolTaskExecutor
Setup @Async di Spring Boot — bounded thread pool, queue capacity, exception handler. Bukan asal-asalan pakai default.
-
2026-07-18 · Bash · Menengah
On-call incident response checklist (script)
Script checklist on-call — auto-gather log, metric, stack trace saat insiden. Forensic data sebelum pod di-restart paksa.
-
2026-07-17 · Go · Lanjut
Go Kafka consumer group dengan rebalance
Consumer group Kafka di Go pakai franz-go — handle rebalance, graceful shutdown, manual commit pattern. Production-ready event consumer.
-
2026-07-16 · SQL · Lanjut
Postgres replication slot lag query
Query untuk monitor replication slot Postgres — detect stale slot yang bikin WAL menumpuk dan disk meledak.
-
2026-07-15 · SQL · Lanjut
Postgres index bloat detection + REINDEX
Deteksi index bloat di Postgres dan REINDEX CONCURRENTLY tanpa downtime. Performance regression diam-diam yang sering kelewat.