WeSearch

A Go outbox library that runs inside your own DB transaction

·7 min read · 0 reactions · 0 comments · 12 views
#go#postgres#microservices#opensource
A Go outbox library that runs inside your own DB transaction
⚡ TL;DR · AI summary

A new Go library called tickr allows for message storage within a Postgres database transaction. This library aims to simplify the transactional outbox pattern by enabling messages to be stored and processed without the need for a separate message broker. It integrates features like Prometheus metrics and OpenTelemetry tracing for enhanced monitoring and observability.

Key facts
Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 753256) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } ndmt1at21 Posted on May 26 A Go outbox library that runs inside your own DB transaction #go #postgres #microservices #opensource TL;DR — tickr is a Go library. It stores messages in one Postgres table. You add messages inside your own database transaction. A worker pool in the same Go process reads them back using SELECT … FOR UPDATE SKIP LOCKED and runs your handler. It ships with Prometheus metrics, OpenTelemetry tracing, and a Grafana dashboard. No broker. No second datastore.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)