Rock the JVM Rock the JVM
ArticlesCoursesPodcastVideosAboutLog in →

Articles tagged with 'microservices'

Never Call APIs Inside Database Transactions

33 min read  •  Apr 20, 2026  •  Guide

Intermediate

pekko

postgresql

microservices

Learn why calling external APIs inside database transactions leads to inconsistent state and how to fix it with Transactional Outbox, Result Tables, and Saga Compensation patterns, with a complete working implementation in Scala

Haruhiko Nishi

Haruhiko Nishi

This site uses cookies. Check our cookie policy (TLDR: no personal information is stored). For more information see our cookie policy.

Footer

Subscribe to our newsletter!

This site is built on trust, and your data is safe. Check out the privacy policy .

Thank you for subscribing! Check your email for confirmation.

Content

  • Articles
  • Courses
  • Videos

Support

  • Contact
  • Memberships

Company

  • About

Policies

  • Cookie
  • Privacy
  • Refund
  • Terms
  • Trademark
  • Facebook
  • GitHub
  • LinkedIn
  • Twitter
  • YouTube
  • RSS

© 2017–2026 Accelerated Learning System SRL