frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: ReJot – Database replication framework aimed at developers

https://github.com/rejot-dev/rejot
9•WilcoKruijer•9mo 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•9mo 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•9mo 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•9mo ago
If the consumers stall, doesn't the WAL have to grow in unbounded fashion? Does it place any backpressure on the writers?
WilcoKruijer•9mo 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.

macOS app to copy text from screenshot

1•tiredmilk•3m ago•0 comments

How I Run 16 Parallel AI Workers on a Single Desktop

https://www.northlakelabs.com/max/blog/how-i-run-16-parallel-ai-workers/
1•maximus_claw•3m ago•0 comments

Ask HN: Balancing the use of AI in out inter communication (h2h)

1•tzury•10m ago•0 comments

Microslop

https://www.s-config.com/microslop/
1•signa11•16m ago•0 comments

Anonymous Chatting App

https://tormessenger.lovable.app
1•genx__•17m ago•0 comments

Japan loses its thirst for vending machines

https://www.ft.com/content/a0e80f5d-4c42-443d-9788-2f9924c774bf
2•petethomas•20m ago•0 comments

Ladybird Browser Is in for a Rusty Future [video]

https://www.youtube.com/watch?v=fXnuR6nXJzc
1•nicoburns•20m ago•0 comments

Twistors and Unification

https://www.math.columbia.edu/~woit/wordpress/
1•gone35•28m ago•0 comments

Ask HN: Can the RAM shortage push personal computing behind forever?

1•rishabhaiover•34m ago•0 comments

Tree style invite systems reduce AI slop

https://abyss.fish/tree-style_invite_systems_reduce_AI_slop
2•y1n0•34m ago•1 comments

Ask HN: Do yall know how to connect Roku remote to fire stick

1•igotdaphone•34m ago•0 comments

Show HN: Internet Speed Limiter – throttle iPhone/iPad network for testing

https://apps.apple.com/us/app/internet-speed-limiter/id6760114671
1•thisisjaymehta•35m ago•0 comments

Rack-Mount Hydroponics

https://sa.lj.am/rack-mount-hydroponics/
6•cdrnsf•42m ago•0 comments

How Discord Stores Trillions of Messages

https://discord.com/blog/how-discord-stores-trillions-of-messages
2•thunderbong•44m ago•0 comments

Robinhood Is Hiring

https://twitter.com/JobsNowPR/status/2032866987815125447
1•qwertyuiop_•45m ago•0 comments

Queueing Theory of Traffic

https://jslandy.com/traffic-queue/
3•efavdb•51m ago•0 comments

OpenMW Xbox-UI Fork

https://ilikegothmommys.gitlab.io/openmw-xbox/
1•Acrobatic_Road•57m ago•0 comments

Free Iran War Monitor

https://iran.airealist.org/
1•msukhareva•59m ago•0 comments

This 18 year old has 12 $200 Codex Plans

https://www.youtube.com/watch?v=i4TBE3Et3I8
1•kshri24•1h ago•0 comments

Nvidia Is Planning to Launch an Open-Source AI Agent Platform

https://www.wired.com/story/nvidia-planning-ai-agent-platform-launch-open-source/
1•umangsehgal93•1h ago•0 comments

EA Lays Off Staff Following Record-Breaking Battlefield 6 Launch

https://www.ign.com/articles/ea-lays-off-staff-across-all-battlefield-studios-following-record-br...
2•andrekandre•1h ago•0 comments

Paper: AI models are faking their step by step thinking

https://twitter.com/thetripathi58/status/2032775838329090191
2•MrBuddyCasino•1h ago•0 comments

Dreamfarm product copied by large competitors

https://www.news.com.au/lifestyle/home/interiors/ripped-off-kmart-slammed-for-unaustralian-act/ne...
1•asdefghyk•1h ago•1 comments

Revanced Manager v2

https://revanced.app/announcements?id=20-release-of-revanced-manager-v2
2•super256•1h ago•0 comments

Show HN: Nimhuml – A Nim parser and serializer for HUML

https://github.com/w3Abhishek/nimhuml
1•w3abhishek•1h ago•0 comments

Young people are turning to old-school hobbies to get off their phones

https://apnews.com/article/old-school-hobbies-vintage-analog-grandma-e45fa11ae1422715b6a254004476...
10•1vuio0pswjnm7•1h ago•1 comments

Epic – a visual design editor with a built-in visual sitemap builder

https://no-edit.lovable.app/
1•theme-man•1h ago•3 comments

Show HN: An experiment in giving coding agents long-term memory

1•yacc2•1h ago•0 comments

A most elegant TCP hole punching algorithm

https://robertsdotpm.github.io/cryptography/tcp_hole_punching.html
3•Uptrenda•1h ago•0 comments

S&P 500 Concentration Approaching 50%

https://www.apolloacademy.com/sp-500-concentration-approaching-50/
4•toomuchtodo•1h ago•2 comments