frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: ReJot – Database replication framework aimed at developers

https://github.com/rejot-dev/rejot
9•WilcoKruijer•1y ago
Hi Hacker News! We're Jan & Wilco from ReJot (https://rejot.dev). With ReJot we're building a framework that turns the write-ahead log of your database into an asynchronous communication channel for your services. ReJot enables application developers to define how the database tables they own should be replicated to other databases. Something we wish we had at in our previous job at a large fintech.

There is a gap between building internal (REST) APIs and Kafka (event streaming) to share data between services.

Internal APIs start to break down when you have more than a couple services communicating. Their synchronous nature makes them brittle in a distributed system: failures cascade and latency adds up. Companies operating internal APIs at scale often face challenges like managing implicit schemas and versioning. They also need to write significant amounts of code to implement features like circuit breakers and internal load balancing.

Event streaming addresses these issues by using asynchronous communication, but it also introduces significant drawbacks. Kafka is known for its operational complexity and high cost. Engineers must manage outbox tables, outbox processors, and consumers, which makes the system more difficult to understand and maintain.

ReJot is the middle ground solution that re-uses a database system's write-ahead log as an asynchronous communication channel. The WAL is well-suited to double as an outbox, this has been proven by CDC systems like Debezium. ReJot is a lightweight addition to existing infrastructure, and even re-uses existing (relational) database systems to store messages (temporarily) before sending them to the destination/sink databases.

We're developer focused, as opposed to being infrastructure focused. Much like how developers define the database table schemas they use, we enable developers to say how their data should be published to others in the distributed system. This is done through something we call "Public Schemas", they consist of a schema and a (SQL) query. When an item in the underlying table changes, the query is executed to produce an object conforming to the schema. This data is then forwarded through ReJot, ready to be consumed by a different service using a "Consumer Schema". This is again a simple (SQL) query that contains an INSERT statement. All of this is defined from within the codebase of the application, much like how ORMs or query builders work.

In short, ReJot re-uses your database in two ways: by consuming the WAL, and also by using queries to encapsulate and integrate data. This makes ReJot a good middle-ground between the brittleness of synchronous communication and the complexity of event streaming.

Excited to hear what you think!

Comments

raoulritter•1y ago
I'm thinking that now with all these agent to agent frameworks this could potentially work for that. If you send off one agent you want them to keep up to date and sync / talk to each-other. Could your solution work for something like A2A by google or similar to enhance the synchronization across the different agents doing their tasks and prevent them from landing in a loop or similar.
WilcoKruijer•1y ago
I'm not too familiar with how people store the state of AI agents, but I do think there's some opportunity to use ReJot for this use case. Hooking up an agent to ReJot and giving them access to all available Public Schemas could be an interesting way of letting an agent explore and use the data in a distributed system.
jasonthorsness•1y ago
If the consumers stall, doesn't the WAL have to grow in unbounded fashion? Does it place any backpressure on the writers?
WilcoKruijer•1y ago
You're right. Since we don't want to put too much pressure on the source database, we do save the (transformed) WAL items in an intermediary database (we call this the event store), so the source can clear its WAL.

This does mean the intermediary database can grow in an unbounded fashion. The use case really determines if this is fine or not. Since our focus right now is on (micro)service communication, we think this is fine in most cases, as the throughput usually is not gigantic.

Since the event store is just a Postgres database, it's easy to set up partitions to only retain data for a certain amount of time. On the near-term roadmap we also have back-fill support which will make it easier to work with shorter retention windows.

Agentcn – Installable AI Agents

1•anayat•1m ago•0 comments

Show HN: I ran 1.3M simulations to fix trade AI in my browser Basketball GM

https://hoops-gm.com/
1•otbasketball•2m ago•0 comments

Ask HN: How do you use claude code / codex at work for your enterprise?

1•surajkrajan•5m ago•0 comments

Startup Equity Survival Guide: what can go wrong with your equity before an IPO

https://github.com/huanghe/startup-equity-guide
1•hahaxixicc•23m ago•0 comments

Amimcp – let Claude work on your Amiga

https://github.com/thomas-luebker/amimcp
1•nickt•23m ago•0 comments

Show HN: AppPage – Fix Instagram blocking App Store links in your bio

https://apppage.co/
3•maulikdhameliya•27m ago•0 comments

Leopold Aschenbrenner Turned $100M into $45B Betting on AI – It Almost Blew Up [video]

https://www.youtube.com/watch?v=mJhGRim2MWY
2•mgh2•31m ago•1 comments

Designing with Code

https://justinjay.wang/designing-with-code/
2•prismatic•37m ago•0 comments

Software Engineering is dead (again)

https://fffej.substack.com/p/software-engineering-is-dead-again
2•ColinEberhardt•43m ago•0 comments

I got an email about resistance

https://www.seangoedecke.com/i-got-an-email-about-resistance/
2•savanaly•43m ago•0 comments

Show HN: VidServe – Turn any local video folder into a LAN streaming site

https://guokai.dev/vidserve/
1•hanguokai•48m ago•0 comments

Reducing Graphics API Complexity: A Clean Slate Design for Modern GPUs [video]

https://www.youtube.com/watch?v=aQv9pUl9PBM
1•matt_d•53m ago•0 comments

I Built Computer Engineering for Babies

https://hackylabs.com/blogs/engineering/how-i-built-computer-engineering-for-babies
1•preetamjinka•53m ago•0 comments

An Innocent Driver Was Held at Gunpoint over a Flock Cam Mix-Up:Wrong Person/Car

https://www.motorbiscuit.com/an-innocent-driver-was-held-at-gunpoint-over-a-flock-camera-mix-up-w...
1•Markoff•58m ago•0 comments

Microsoft Word for Windows 1.1a, Native X64 Port

https://github.com/jmarshall23/msword
4•BruceEel•59m ago•0 comments

Show HN: Fixing optical computing jitter via fluid dynamics in GPU registers

https://github.com/PJHkorea/photonic-mesh-fng-router
1•PJHkorea•1h ago•1 comments

Driving a 7.3" 6-Color E-Paper Display in `no_std` Rust (ESP32-S3)

https://github.com/melastmohican/rust-reterminal-e1002-examples
1•melastmohican•1h ago•0 comments

Muse Code Sends Codex and Claude Instructions to Meta by Default

https://runtimewire.com/article/exclusive-muse-code-sends-codex-and-claude-instructions-to-meta-b...
2•ryanmerket•1h ago•0 comments

Six months of action gaming alters brain networks and improves visual attention

https://www.psypost.org/six-months-of-action-gaming-alters-brain-networks-and-improves-visual-att...
1•giuliomagnifico•1h ago•1 comments

Meta CTO told employees AI gains should go into more work

https://thenextweb.com/news/meta-bosworth-ai-productivity-more-work-not-time-off
1•chanux•1h ago•2 comments

Termdom: Build terminal apps with HTML, CSS and the DOM

https://github.com/bikeshaving/termdom
2•thunderbong•1h ago•0 comments

NASA Wildfire Tracker – Real-time satellite feeds and microclimate risk modeling

https://nasa-wildfire-tracker-3pfkr5zcs2jmze5dpknvet.streamlit.app/
1•ClimateDev•1h ago•0 comments

Churvaness – Bilingual books for language learners

https://leanpub.com/u/churvaness
1•pawpatrol•1h ago•1 comments

Open Source, third-party auditing for AI Agents

https://github.com/ifixai-ai/iFixAi
2•dimneo24•1h ago•1 comments

Play Football Online

https://danfootball.com
2•declaj•1h ago•0 comments

Interviewpad.io

https://www.interviewpad.io/
3•sharva•1h ago•3 comments

Apple to require iOS apps must have minimum OS version of iOS 15 in 2027 onwards

https://www.reddit.com/r/iOSProgramming/comments/1vgql6n/new_warning_when_uploading_app_to_app_st...
3•busymom0•1h ago•2 comments

The Nixpkgs core team has unfortunately decided to disband

https://github.com/NixOS/org/pull/277
2•codewiz•1h ago•0 comments

The original URL for this prediction will no longer be available in 11 years (2011)

http://longbets.org/601/
79•doubletwoyou•1h ago•13 comments

How I sell my garlic online.

https://Demeterfamilyfarm.com
1•Hilliard_Ohiooo•1h ago•0 comments