this post was submitted on 01 Dec 2026
5 points (100.0% liked)

Programming

29446 readers
407 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old

more like:

we never read the jpa spec, nor the hibernate docs and made a common mistake.

Vlad has a good blog post about batch inserts with hibernate, for anyone who wants less fluff around the lesson.

https://vladmihalcea.com/batch-insert-mysql-hibernate/

[โ€“] footfaults@lemmygrad.ml 2 points 1 day ago* (last edited 1 day ago)

We solved this by introducing Kafka as a buffer between the API and the database.

Okay so you "solved" the problem of slow inserts in your database by creating a distributed system. Now you get to deal with fault tolerance and coordination and network latency, among all kinds of other problems that a distributed system has to deal with.