r/softwarearchitecture • • Sep 28 '23 Heartwarming

Discussion/Advice [Megathread] Software Architecture Books & Resources

592 Upvotes

This thread is dedicated to the often-asked question, 'what books or resources are out there that I can learn architecture from?' The list started from responses from others on the subreddit, so thank you all for your help.

Feel free to add a comment with your recommendations! This will eventually be moved over to the sub's wiki page once we get a good enough list, so I apologize in advance for the suboptimal formatting.

Please only post resources that you personally recommend (e.g., you've actually read/listened to it).

note: Amazon links are not affiliate links, don't worry

Roadmaps/Guides

Books

Engineering, Languages, etc.

Software Design

The Art of Architecture

Enterprise Architecture

Career

Blogs & Articles

Podcasts

  • Thoughtworks Technology Podcast
  • GOTO - Today, Tomorrow and the Future
  • InfoQ podcast
  • Engineering Culture podcast (by InfoQ)

Misc. Resources


r/softwarearchitecture • • Oct 10 '23

Discussion/Advice Software Architecture Discord

22 Upvotes

Someone requested a place to get feedback on diagrams, so I made us a Discord server! There we can talk about patterns, get feedback on designs, talk about careers, etc.

Join using the link below:

https://discord.gg/ccUWjk98R7

Link refreshed on: December 25th, 2025


r/softwarearchitecture • • 3h ago

Article/Video Inside Apache Lucene 9.9 and Elasticsearch 8.19: FSTs, Block-Max WAND, Segments & Translog

Thumbnail youtu.be
3 Upvotes

r/softwarearchitecture • • 10h ago

Article/Video LIVE SANDBOX WALKTHROUGH: READ-ONLY GOVERNANCE & FX CIRCUIT-BREAKERS (65-SECOND DEMO)

Thumbnail youtube.com
1 Upvotes

Live Demo, Systems Architecture, Venture Capital, Corporate Governance, Risk Management


r/softwarearchitecture • • 1h ago

Article/Video The code is done. The pipeline is still running.

Post image
0 Upvotes

Is a 10-minute CI pipeline fast enough for coding agents?

A coding agent can make a change in seconds. If it has to push and wait ten minutes to find out whether the change works, it can either sit idle or keep building on code it hasn’t verified yet.

I wrote about giving agents a faster feedback loop with the same checks we already trust in CI. Run the relevant tests and static analysis locally after each small change. Let CI independently verify the integrated result.

For those using coding agents regularly, what sped up the feedback loop most for your team?

Read my article: https://software-success-consultant.com/the-code-is-done-the-pipeline-is-still-running


r/softwarearchitecture • • 1d ago Heartwarming

Article/Video Agoda Reduces API Code Review Time by 64% with Modular Architecture

Thumbnail infoq.com
41 Upvotes

Agoda has introduced a modular monolith framework in its post-booking API to reduce code coupling and enforce domain boundaries without rewriting the existing service. The approach combines component-based code organization, automated architecture checks, and incremental migration. The team reported 64% shorter median code review time and 34% shorter time to initial substantive feedback for framework-backed changes compared with legacy code.


r/softwarearchitecture • • 1d ago

Discussion/Advice C++/Qt legacy app: one API or two (C++ + FastAPI)?

5 Upvotes

We need to build an API for the industry​ on top of a big legacy C++/Qt codebase. The plan is to move some features to FastAPI and have it call a C++ API for the rest because to complex to move in fasAPI

Two APIs seems like a bad idea to me. I'd rather build a single API in C++.

Thoughts?

EDIT context++: 20+ year old C++/Qt codebase, complex but stable in prod. Goal: turn 100+ .exe into lighter apps via APIs. Small team (4, 5), strong in C++, weak in Python, same people maintaining for the next 2 years. Expected features: AD authentication, load handling, replication. My worry: C++ frameworks like Drogon may not be as mature as FastAPI for that.


r/softwarearchitecture • • 1d ago

Discussion/Advice What’s the biggest legacy codebase you’ve ever had to fix?

7 Upvotes

Our team took on a project to work on a legacy codebase for a client who couldn’t understand why it took three weeks to release a minor feature update. Turns out, the core of the app was a single 4000 line file that handled authentication, database queries, and pdf generation. There was no documentation, strict database credentials were written in the comments. Changing a line would break three unrelated functions. We needed almost two months to untangle this code a bit so that deployments would not break the production environment.


r/softwarearchitecture • • 2d ago

Discussion/Advice Writing a book helps you understand Software Architecture better

37 Upvotes

I’m a SWE and I am writing my first fictional book. Writing my book taught me a lot about “architecture”.
While writing code I used to focus more on “bottom up” approach and that kept “top architecture” as nebulous and vague.

While building my app, I start by doing the smallest MVP feature. Then I keep adding new features and then refactoring.

Writing a book allowed me to approach a project from “top down” and helped me learn better.

You can start writing a book by individual lines. Like you can start by writing chapter 1 line one.

Instead of doing that, I focused on writing the skeleton of the book - chapters, plot points. I spent a long time finalizing and polishing this book outline instead of jumping into writing sentences.

Then and only then did I start writing out the final lines.


r/softwarearchitecture • • 1d ago

Article/Video What do engineers get wrong about payment systems? My notes on idempotency, ledgers and reconciliation

Thumbnail thebackendguy.dev
0 Upvotes

r/softwarearchitecture • • 1d ago

Article/Video New Community for System Design Learners

Thumbnail reddit.com
1 Upvotes

Join this Community and learn, share, teach, post everything related to system designs so, that people who want to prepare for interviews or learn system design will get benefitted.


r/softwarearchitecture • • 1d ago

Article/Video I wrote a free handbook on designing payment systems. Please tell me where it's wrong.

Thumbnail thebackendguy.dev
0 Upvotes

r/softwarearchitecture • • 3d ago

Discussion/Advice [CAP Theorem] If I choose consistency and return 500s when my app can't reach the database, how is that "partition tolerant"?

29 Upvotes

I'm trying to understand partition tolerance in the CAP theorem, and one thing doesn't add up for me.

From my understanding - a "partition" occurs when two systems are unable to talk to each other, and so, they can't agree on what is the current state of the whole system

"Partition Tolerance" means that when a partition happen, your system should not "collapse" and we need to decide between consistency vs availability.

Say my application can't connect to its database right now. If I choose consistency over availability, I return a 500 error for every request. How is that "tolerant" of the partition? It looks like the system just stopped working.

Also, lets say, I have a database of list of movie shows, and my app need to list the movies (get endpoint), then, at some point, my server is unable to talk to database. lets assume I do not have a local cache etc (it is a small scale app), doesn't it mean that I am forced to pick un-availability? I do not have a "choice" here, do I?

So my questions are:

  1. What does "partition tolerant" actually mean, given that choosing C just means returning errors?
  2. Similar point for "Availability", Somewhere I read if your system is returning errors with error message, they consider as it is "available", but for me it is not available.
  3. When I asked claude about this, it said that CAP only applies when you have same data replicated, but I have not seen this condition in any article / courses online. So Does CAP apply to a simple app-to-database setup, or only to systems with replicated data?
  4. How should I answer this in an interview?

r/softwarearchitecture • • 2d ago

Article/Video Interview Mein Dimaag Blank? System Design 7-Step Framework | System Des...

Thumbnail youtube.com
0 Upvotes

learn and share suggestion.


r/softwarearchitecture • • 3d ago

Tool/Product A platform to pull together existing documentation into a knowledge graph.

17 Upvotes

I have developed out architxt (https://architxtlabs.com) over the last 6 months or so. The point of this platform is to take existing component designs, tag with the simplest object structure and push it to an agent memory platform (hindsight). Once there the information can be queried back out in many ways like narratives, tables, mermaid diagrams and graph data.

Everything is grounded with evidence ids and references - and tagging of entities within the documents creates a stable reference across documents and sources.

This platform is for those who have to spend their time finding the relevant documents for a project, archeologically piecing together the architecture from multiple sources and where you have a mountain of documents that need to be read to come up to speed quickly.

Version and evolution is done by adding additional information or new documents - the memory part takes care of evolving and consolidating multiple points of view and conflicting information.

Context patches (like system summaries, system interactions, capabilities etc) that contribute to the overall knowledge graph are all automatically built and applied - this includes add and removal of information, but also when new information is added that updates an existing observation.

Every component is fully open source (MIT) and self-hostable - this was a must for me as I think that sovereign AI still has a good future ahead of it.

With the latest version (0.5.3) it can import and extract documents like pdf, work, excel, powerpoint, html and output in multiple formats - markdown for portability, C4 (LikeC4, Mermaid, Structurizr), GraphML, Archimate, Cypher, GEXF, JSON, CSV.

It supports workspaces for querying and piecing together documents to use downstream and also persistent version tracked views for those targeted areas of interest.

No large models required, e.g. gpt-6-luna is more than capable to handle all tasks end to end.

Views allow bounded concepts to stored and queried
Workspaces allow query and segments of information to be compiled
Find and tag entities in the extracted text

This isn't meant to replace ADRs, EA tools - its there to getting the information into a solid state before attempting to use it. It also doesn't attempt to replace platforms such as LikeC4, Archie, Draw.io etc - one of its core purposes it be able to get the information out as quickly and in a portable format. No MCP yet, but its pretty much next on the list now all major functions have been built.

It would be great to hear opinions and questions from others who are working in this area and exchange ideas or to challenge what I have presented above. Check out https://architxtlabs.com for the full documentation, there are demo environments available if you would like to assess it.

Thanks!


r/softwarearchitecture • • 3d ago

Article/Video Active-Active Multi-Region Disaster Recovery: Surviving a Full Region Outage

Thumbnail youtu.be
4 Upvotes

r/softwarearchitecture • • 3d ago

Article/Video Understanding the State Design Pattern in Go: A Practical Guide

3 Upvotes

Wrote a practical guide to the State Design Pattern in Go, covering how to manage state-dependent behavior without cluttering your code with conditional logic.

https://medium.com/@priyankchheda/understanding-the-state-design-pattern-in-go-a-practical-guide-79913bda9b02


r/softwarearchitecture • • 3d ago

Discussion/Advice Architecture rules for agent-written services: what actually reduced your review load?

20 Upvotes

I'm working out the architecture and rules we'll enforce across every service in our system (Java/Spring). Most of the code will be written with Claude Code. I want enforcement by tooling rather than written rules in prose (see Lauren Tan talk).

Goal: reduce pressure on human review, correctness by construction, ban nuance.

What I've found so far:

  • OpenAI's "harness engineering" post: fixed forward-only layers per domain (Types → Config → Repo → Service → Runtime → API).
  • Vertical slices with a functional core and imperative shell: a pure decide() per feature, with I/O kept in a thin shell. I like the locality and testability.
  • Full DDD plus hexagonal: my team loves DDD. The structure is checkable, but the ceremony per use case lands on reviewers, and the design calls (aggregates, ports) require nuance

Next step for me is a PoC comparing:

  • A. OpenAI-style layers, organized by feature
  • B. Vertical slices with a functional core and imperative shell

Later I can enforce with custom Error Prone checks, so violations fail at compile time with error messages that tell the agent how to fix them.

Questions:

  1. Which structure held up after months of agent-written code?
  2. Which compile-time or CI rules caught the most real problems?
  3. Has anyone moved a DDD-heavy team toward slices? How did it go?
  4. Any talks or reads you'd recommend on this?

Thanks.


r/softwarearchitecture • • 3d ago

Discussion/Advice Comprehension debt: should every AI-era change carry a signed decision record and an independent audit?

11 Upvotes

Addy Osmani's "comprehension debt" essay argues that reviewed code is no longer understood code. Margaret-Anne Storey frames the wider problem as technical, cognitive and intent debt. Most fixes I've seen say "write the reasoning down" (ADRs, intent files). I agree, but on their own those tend to turn into paperwork nobody checks.

I've written up a pattern as an attempt at the rest:

It's adapted from NASA IV&V, the IIA Three Lines Model and smart-contract audits. Ken Alger's Reasoning Ledger for agent systems is the closest thing I've found.

Questions I'd genuinely like answered:

Spec, diagrams and a small demo : https://github.com/i-asimkhan/ledger-layer-pattern


r/softwarearchitecture • • 3d ago

Article/Video System Design: How Do Voice Platforms Prevent Double-Spending Across Concurrent AI Phone Calls?

Thumbnail medium.com
0 Upvotes

I recently published a system design article on real-time billing and concurrency control for AI voice agents.

The core dilemma is simple. A customer with $2.00 in their prepaid wallet launches 20 concurrent outbound calls. Post-call billing causes instant negative debt. Database row locking on every audio tick freezes servers and ruins audio quality.

The article breaks down three designs: post-call settlement, synchronous database row locking and an in-memory credit reservation system using atomic Redis leases with automated SIP teardowns.

For engineers working with voice infrastructure or real-time billing:

  • Do you use in-memory reservation leases or streaming events to deduct active call balances?
  • How does your media server enforce instant hangup when a prepaid balance runs out mid-call?
  • How do you protect system-level trunk capacity when multiple tenants burst outbound calls at once?

r/softwarearchitecture • • 4d ago

Discussion/Advice How do you handle long-running transactions spanning multiple components?

47 Upvotes

Since everyone is now using web services, traditional two-phase transactions don't seem to apply anymore. A typical scenario is when you submit a request (e.g. to initiate a payment) and receive a response (e.g. as a webhook) a little while later.

Based on what I've seen in fintech apps, it's usually handled with workers that mark a transaction as pending and then handle the state if it's not consistent.

We have a few posts in r/fintechdev subreddit that discuss transactions in fintech e.g. https://www.reddit.com/r/fintechdev/comments/1epuqxp/do_you_use_saga_pattern_to_handle_multistep/

How do you handle long-running transactions that span multiple components?


r/softwarearchitecture • • 5d ago

Article/Video Designing a 250K Writes/Sec URL Shortener & Distributed ID Generator

Thumbnail youtu.be
6 Upvotes

r/softwarearchitecture • • 5d ago

Tool/Product I built this for AWS architecture diagrams. Curious how others review architecture as they go.

7 Upvotes

I’ve been working on AWS architecture diagrams and keep coming back to this: how can AI help review what you’re building while you’re still drawing and changing things?

You add a service, change a connection. Then you stop and wonder if that even makes sense anymore. Or maybe there’s a simpler way. I wanted to ask those questions right there with the diagram instead of having to explain the whole thing again in a separate chat.

So I built an editor for that. There’s an AI agent that sees what’s on the canvas, can talk through it with you and make changes. It’s AWS specific and uses AWS Well-Architected guidance.

You can draw from scratch, pick a starter diagram or generate one from a prompt. That prompt part still needs work honestly. Even when the architecture makes sense, the complex layouts can get a bit messy. I spend a fair amount of time on that.

What I’m trying to figure out is where this actually helps. And where it gives a confident answer but misses something because it doesn’t have enough context.

Are people doing this already? Asking AI to review as you go and itirate with AI's help? Or do you finish the diagram first and then get feedback, from AI or another person?

Here’s what I built if you want to try it: https://buildplane.ai

The editor is free, no account needed. AI has usage limits because it gets expensive pretty quickly. Still figuring out a reasonable limit there. If you run out of credits while trying it, message me and I’ll reset your limit.

Would appreciate any feedback. Especially if it tells you to do something questionable. That’s useful for me to hear too.


r/softwarearchitecture • • 7d ago

Article/Video My colleagues' Software Architectures course at Carnegie Mellon (17-635) is now free on YouTube

427 Upvotes

Disclosure: Swarnalatha Ashok and Scott Pavetti are my colleagues at CMU, and I help run CS Learn, the program that publishes the recordings.

I wanted to share their course here. 17-635 is a core course in several of Carnegie Mellon's Master of Software Engineering programs. It covers how architectural drivers shape a system's structure, the common styles and patterns, how to document an architecture, and how to evaluate a design against its quality requirements and tradeoffs.

The first three lectures are up now, and a new one will go up each week at the same time. These are the real classroom lectures. The editing is all done by a student team.

Links are in my first comment.