r/softwarearchitecture • u/Important_Yogurt_468 • 41m ago
r/softwarearchitecture • u/Famous_Action7782 • 3h ago
Discussion/Advice Best way to learn system design?
Im a junior FSD i want to learn system design for building scalable systems.
What could be the best method and playlist or doc to follow
r/softwarearchitecture • u/Accurate-Screen8774 • 3h ago
Tool/Product Decentralized Microfrontend Architecture

IMPORTANT DISCLAIMER: This is my own project. Im am using AI. Its important to get that out of the way... because its the key reason for why YOU SHOULD NOT USE IT. Im not trying to promote "yet another secure messaging app", this is an example to see what is possible with a related UI framework im working on ( https://github.com/positive-intentions/dim ). Its unreviewed, unaudited and far from finished. This framework is intended for myself on my own projects. It is provided open-source for transparency, testing and demo purposes only. There will be breaking changes.
- Messaging app repo: https://github.com/positive-intentions/dimim
- Live demo: https://dim.glitr.io
- Framework guide: https://glitr.io/docs/technical/research-and-development/dim/getting-started
The key details that set this approach apart:
- No installation or registration
- No minification or transpilation
- No React, NPM or bundler
- Works from index.html
To make something complicated at scale, i would need to have an approach for testing out changes in a way thats more isolated/focused. The npm ecosystem is useful because you can have things like storybook, unit-testing and browser automation tools. So i wanted to see what is possible with the pure javascript approach and created runTests.html. Like the main app, the code is just plain javascript and so it can be imported and tested in with production statics. The testing functionality here is especially far from finished. This is an important feature to do it properly because it would be doing a lot of heavy lifting as the project improves.
The architecture is also a bit unique. Module federation has been around for a while but still fairly under-used. Im aiming for something that could be described as like a vanilla JS "decentralized microfrontend architecture", where in this approach, i can abstract complexity into seperate repositories to manage reusble functionality like in the boilerplate example:
- Code: https://github.com/positive-intentions/dim-boilerplate
- Demo: https://positive-intentions.github.io/dim-boilerplate
- Docs: https://glitr.io/docs/technical/research-and-development/dim/dim-boilerplate
To avoid vibecoded cryptography, the aim here is to avoid handling encryption where possible. Browsers that support webrtc, will have their own mechanisms for managing encryption (as required by the spec). The keys will not be accessible from app-level JS code. For security best-practice, users should use an OS, browser and network they trust.
P.S. The disclaimer above is always worth repeating. Im aiming for a post like this to be like "building in public". If interesting to anyone, i hope its inviting to take a look. It's hard to determine if / when its a good time to share, so best to get it out there sooner for any outstanding issues i may have overlooked.
r/softwarearchitecture • u/DeepEngineeringPackt • 4h ago
Conferences Architecting Domain-Driven IDPs for the Agentic Era | Hands-On Workshop
Hey everyone!
At Packt, we're hosting a 6-hour hands-on workshop with Ajay Chankramath on December 13, exploring how Domain-Driven Design principles can be applied beyond application architecture to internal developer platforms.
The workshop covers:
- Applying bounded contexts, Conway's Law, and ubiquitous language to platform architecture.
- Defining architectural boundaries and service ownership using Kubernetes.
- Balancing engineering autonomy with architectural governance using Terraform, Helm, and OPA.
- Measuring architectural drift and platform complexity.
Through 3 practical labs, you'll build a reusable Platform Governance Blueprint for your organization.
If you're interested in DDD, software architecture, or designing platforms for AI-assisted development, you can find more details here: https://luma.com/platform-engineering
Happy to answer any questions!
r/softwarearchitecture • u/r-spriebsch • 5h ago
Article/Video The code is done. The pipeline is still running.
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 • u/mostaptname • 8h ago
Article/Video Inside Apache Lucene 9.9 and Elasticsearch 8.19: FSTs, Block-Max WAND, Segments & Translog
youtu.ber/softwarearchitecture • u/Itchy-Tune-5059 • 15h ago
Article/Video LIVE SANDBOX WALKTHROUGH: READ-ONLY GOVERNANCE & FX CIRCUIT-BREAKERS (65-SECOND DEMO)
youtube.comLive Demo, Systems Architecture, Venture Capital, Corporate Governance, Risk Management
r/softwarearchitecture • u/AsyncNomads • 1d ago
Article/Video What do engineers get wrong about payment systems? My notes on idempotency, ledgers and reconciliation
thebackendguy.devr/softwarearchitecture • u/Sweet-Yoghurt-7097 • 1d ago
Discussion/Advice C++/Qt legacy app: one API or two (C++ + FastAPI)?
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 • u/Physical-Net-7148 • 1d ago
Article/Video New Community for System Design Learners
reddit.comJoin 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 • u/Queasy_Speaker7227 • 2d ago
Discussion/Advice What’s the biggest legacy codebase you’ve ever had to fix?
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 • u/AsyncNomads • 2d ago
Article/Video I wrote a free handbook on designing payment systems. Please tell me where it's wrong.
thebackendguy.dev
r/softwarearchitecture
•
u/rgancarz
•
2d ago
Article/Video Agoda Reduces API Code Review Time by 64% with Modular Architecture
infoq.comAgoda 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 • u/birth_of_bitcoin • 2d ago
Discussion/Advice Writing a book helps you understand Software Architecture better
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 • u/ryzen_dost234 • 2d ago
Article/Video Interview Mein Dimaag Blank? System Design 7-Step Framework | System Des...
youtube.comlearn and share suggestion.
r/softwarearchitecture • u/priyankchheda15 • 3d ago
Article/Video Understanding the State Design Pattern in Go: A Practical Guide
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.
r/softwarearchitecture • u/mostaptname • 3d ago
Article/Video Active-Active Multi-Region Disaster Recovery: Surviving a Full Region Outage
youtu.ber/softwarearchitecture • u/ImportantPudding1570 • 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"?
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:
- What does "partition tolerant" actually mean, given that choosing C just means returning errors?
- 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.
- 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?
- How should I answer this in an interview?
r/softwarearchitecture • u/Independent-Pause753 • 3d ago
Tool/Product A platform to pull together existing documentation into a knowledge graph.
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.



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 • u/iasimkhan • 3d ago
Discussion/Advice Comprehension debt: should every AI-era change carry a signed decision record and an independent audit?
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 • u/analcocoacream • 3d ago
Discussion/Advice Architecture rules for agent-written services: what actually reduced your review load?
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:
- Which structure held up after months of agent-written code?
- Which compile-time or CI rules caught the most real problems?
- Has anyone moved a DDD-heavy team toward slices? How did it go?
- Any talks or reads you'd recommend on this?
Thanks.
r/softwarearchitecture • u/fvrAb0207 • 4d ago
Discussion/Advice How do you handle long-running transactions spanning multiple components?
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 • u/mostaptname • 5d ago
Article/Video Designing a 250K Writes/Sec URL Shortener & Distributed ID Generator
youtu.ber/softwarearchitecture • u/Chi_Bit60 • 5d ago
Tool/Product I built this for AWS architecture diagrams. Curious how others review architecture as they go.

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.