r/softwarearchitecture • u/javinpaul • 8h ago
r/softwarearchitecture • u/MindlessRespect5552 • 2h ago
Discussion/Advice For multi tenant database
Hey , I'm working for ERP and using seperate database for each tenant .
I'm change database name according to subdomain or Single DB + Multiple Schemas . Which is best way
Or anyone please help which is best architecture or way to do it .
r/softwarearchitecture • u/mehdi_hadeli • 21h ago
Article/Video GitHub - mehdihadeli/awesome-software-architecture: 📚 A curated list of awesome articles, videos, and other resources to learn and practice software architecture, patterns, and principles.
github.comAwesome Software Architecture
Hi all, I created a repository some time ago, that contains a curated list of awesome articles, videos, and other resources to learn and practice software architecture, patterns, and principles.
You're welcome to contribute or any suggestions in the existing categories and make this repository better :)
Repository: https://github.com/mehdihadeli/awesome-software-architecture
Website: https://awesome-architecture.com
r/softwarearchitecture • u/Abject-Fix1074 • 14h ago
Discussion/Advice Global Dev Experts – Software Architecture course, any experiences?
Has anyone taken this course, particularly with Lee Blum?
I’m a Senior Backend Engineer looking to deepen my knowledge of software architecture. The syllabus looks interesting, but the course is quite expensive.
How technically in-depth is it, how much did you actually learn, and would you pay for it again?
r/softwarearchitecture • u/eumarumar • 1d ago
Discussion/Advice How common is optimistic locking in real-world production applications?
In six years of software development, I've rarely encountered record-level versioning or the use of ETags and If-Match HTTP headers to prevent lost updates.
How common is this in your production applications? Do you implement it, use alternative approaches, or simply accept last-write-wins behaviour?
I'm particularly interested in real-world adoption rather than theoretical best practices.
r/softwarearchitecture • u/SysModeler • 1d ago
Article/Video SysML v2 Tutorial (Lesson 26): Requirement Definitions (Requirements as Code)
youtu.beWe are kicking off Phase 5 of our SysML v2 deep dive series. Up through Lesson 25, we covered what a system is (structure) and what it does (actions, flows, and states). Now we move to what the system must do: Requirement Definitions—and how SysML v2 turns traditional text-only specs into typed, evaluable contracts.
The Classic Spec Problem (Text vs. Executable Contracts)
In software architecture, we deal with the same drift problem systems engineers faced in SysML v1: requirements live in prose (wikis, Jira tickets, ADRs, or DOORS), while the actual thresholds live in code and config.
SysML v1 had strong traceability («satisfy», «verify», «deriveReqt», «copy») and mature DOORS/ReqIF integration, but the requirement itself was just an opaque text string (id: REQ-001, text: "The vehicle shall not exceed 5000 kg at takeoff."). Querying every requirement above a threshold or propagating a limit change meant reading sentences and updating downstream checks by hand.
The v2 Shift: RequirementDefinition Is a ConstraintDefinition
In SysML v2, a requirement is essentially policy-as-code. It still keeps its human-readable doc comment and stable ID (as a short name like <'REQ-001'>), but it also embeds typed parameters, an explicit subject**, and an evaluable** require constraint:
package MassRequirements {
private import ISQ::*;
private import SI::*;
part def LaunchVehicle {
attribute totalMass: MassValue;
}
requirement def <'REQ-001'> MaxTakeoffMass {
doc /*
* The vehicle shall not exceed the specified
* takeoff mass under any loading configuration.
*/
subject vehicle: LaunchVehicle;
attribute maxMass: MassValue = 5000 [kg];
require constraint {
vehicle.totalMass <= maxMass
}
}
}Because maxMass is a typed quantity (5000 [kg]) and the rule is a formal Boolean expression, tools can query thresholds across the model, evaluate compliance automatically, and propagate changes without regex-searching prose.
Parameterized Reuse (subject + :>>)
In SysML v1, «copy» only mirrored read-only text—you couldn't reuse a rule template across multiple components with different budgets.
In SysML v2, declaring a typed subject works like a parameterized contract or generic assertion. You define the rule once and instantiate it across subsystems with overridden values via redefinition (:>>):
part def PhysicalComponent {
attribute actualMass: MassValue;
}
requirement def MassBudgetCompliance {
subject component: PhysicalComponent;
attribute allocatedMass: MassValue;
require constraint {
component.actualMass <= allocatedMass
}
}
part def LaunchVehicle {
part firstStage: PhysicalComponent;
part secondStage: PhysicalComponent;
part payload: PhysicalComponent;
requirement stage1Mass: MassBudgetCompliance {
subject = firstStage;
:>> allocatedMass = 3200 [kg];
}
requirement stage2Mass: MassBudgetCompliance {
subject = secondStage;
:>> allocatedMass = 1400 [kg];
}
requirement payloadMass: MassBudgetCompliance {
subject = payload;
:>> allocatedMass = 400 [kg];
}
}Three Practical Nuances
- First-class
actorandstakeholdermetadata: Instead of tracking ownership in external spreadsheets, you can declareactor(who interacts with the system) andstakeholder(who owns or certifies the rule) directly on the requirement and filter by them natively. - Non-functional / qualitative requirements stay text: Not every requirement reduces to a Boolean expression (e.g., "The system shall be maintainable by a technician with standard tooling"). Those stay cleanly in the
docblock alongside theirsubjectand metadata, versioned right next to the architecture. - Tooling reality check: SysML v1 still has more mature DOORS and ReqIF ecosystems, while v2 requirements-management tooling is still catching up.
SysML v1 vs. SysML v2 at a Glance
| Concept | SysML v1 | SysML v2 |
|---|---|---|
| Requirement Element | «requirement» stereotype on a Class | requirement def, specializing ConstraintDefinition |
| Thresholds | Embedded inside prose | Typed quantities (e.g., 5000 [kg]) |
| Subject Binding | Named in text, linked later via «satisfy» | Explicitly declared as a typed subject |
| Reuse | «copy» mirrors read-only text | One definition reused across subjects with :>> overrides |
| Roles | Stakeholders tied to viewpoints, not requirements | actor and stakeholder declared directly on the requirement |
| Identifiers | id property | Short name (e.g., <'REQ-001'>) |
| Tool Ecosystem | Mature DOORS / ReqIF support | Younger requirements-management tooling |
Next lesson (Lesson 27), we'll cover require and assume—how to formally express the preconditions and operating assumptions under which a requirement actually applies.
For the software architects here: How do you keep non-functional requirements and SLAs (latency, memory budgets, throughput) coupled to your architecture so they don't drift from the implementation—fitness functions in CI, policy-as-code, or something else?
r/softwarearchitecture • u/Wizztrace • 23h ago
Article/Video Designed to Scale: Learn System Design with This Free Interactive Platform
youtu.beI recently came across Designed to Scale, an interactive platform for learning system design.
It currently has 40 lessons organized into different modules, covering topics such as scaling, data and storage, communication, reliability and architecture.
One thing I found interesting is how the lessons use animated diagrams and step-by-step explanations.
I made a short walkthrough demonstrating the platform, its course structure and one lesson called "How a Request Travels".
I'd be interested to hear what other resources people use to learn system design.
r/softwarearchitecture • u/mananvpanchal • 22h ago
Tool/Product Event-driven (choreography) java framework for monolith/microservices
I am working on the framework that helps building event-driven java application. I am still working on edge cases. Here is the gist: https://gist.github.com/mananvpanchal/25aeb37b04da7399adbcde2b251e0bc5
I will appreciate if you spare some time to read it. Please, let me know if I am on right path or wrong.
Thanks
r/softwarearchitecture • u/ryan_the_dev • 1d ago
Tool/Product Diagram Tool
galleryHey all. I work for a company. Passing around diagrams is a challenge. Some teams have access to github, some access to sharepoint (yuck), and some access to all the other random tools my company has used over the years.
In an attempt to centralize at least diagrams for this agentic world, I opted to build an RBAC/SSO open source version of infinite canvas, with all the additional features.
Feel free to fork it and make it your own or open PRs to make mine better. Really just interested in feedback. Vibe coded the hell outta this, so I'm sure there are bugs in random places. Feel free to call them out or open gh issues.
brag doc: http://ryan.upubli.sh/plenary
try it out (cheap 5 dollar server): p5y.omni.ooo
r/softwarearchitecture • u/Famous_Action7782 • 2d 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/imaanmzr • 19h ago
Tool/Product Riff - An open-source engineering workflow for coding agents
One of my biggest frustrations with coding agents is how quickly they jump into implementation without properly understanding the problem, questioning assumptions, or considering the consequences of their decisions.
Software engineering involves understanding an existing system, questioning requirements, exploring alternatives, making decisions, respecting architectural boundaries, reviewing implementations, and preserving knowledge for future work.
That's why I've been building Riff, an open-source engineering workflow for Codex, Claude Code, Cursor, and VS Code Copilot.
Rather than giving agents another collection of instructions, Riff introduces a persistent, revision-aware engineering workflow.
Some of its more interesting capabilities:
- Intelligent questioning: Agents investigate the codebase before asking questions, challenge assumptions, explore edge cases, and reuse previously answered questions.
- Adaptive workflows: Small changes get lightweight treatment, while complex or high-risk changes require deeper investigation, planning, and independent review.
- Stale-review detection: A previously approved plan is no longer considered valid when relevant code, requirements, or configurations invalidate its review evidence.
- Persistent engineering context: Decisions, investigations, plans, dependencies, and execution progress survive across sessions, machines, and supported coding agents.
- Execution gates: Implementation follows reviewed plans, explicit authorization, and acceptance criteria.
- Recovery and reconciliation: Interrupted work can be resumed using saved checkpoints and source fingerprints instead of relying solely on conversation history.
- Task and model routing: Proposes assignments based on host capabilities, dependencies, file conflicts, concurrency, and token budgets.
- Inspectable plans: Markdown, JSON, dependency graphs, revision comparisons, and offline HTML exports.
The latest addition is elicitation. You can ask Riff to deeply explore a problem before making a decision, either independently or as part of an existing workflow:
riff elicit "Design a distributed payment system"
riff plan "Implement partial refunds" --elicit --focus "Financial consistency"
Riff is local, MIT-licensed, built with Python's standard library, and requires no additional API keys or external infrastructure.
I'm not trying to build another coding agent. I'm trying to improve the engineering process behind the agents we already use.
The project is currently in the 1.0 release-candidate stage, with some additional capabilities available on main.
GitHub: https://github.com/imaanmzr/Riff
I'm particularly interested in hearing from developers using coding agents on large or long-lived projects. How do you currently handle architectural consistency, context loss, and decisions that become outdated as the codebase evolves?
r/softwarearchitecture • u/samtech_innovations • 1d ago
Discussion/Advice Good Architecture
I recently revisited a backend implementation and realised how much easier it is to introduce bugs when business logic is scattered across multiple layers.
I've become more deliberate about separating responsibilities, keeping services focused and making data flow predictable.
Good architecture isn't about adding more abstractions. It's about making complex systems easier to understand, test and maintain.
r/softwarearchitecture • u/RomillyGreer • 1d ago
Discussion/Advice Which low code platforms are worth considering for internal app development?
We're looking into low code platforms to reduce the time our developers spend building internal CRUD apps, dashboards and admin panels.
Retool, Superblocks and AppSmith are on our radar, but we're still weighing the trade offs.
Ideally we need something that supports custom JavaScript and SQL, API integrations, role based permissions and GIt integration without introducing unnecessary architectural complexity.
Has anyone adopted a lowcode platform within an existing engineering team? Did it actually improve development velocity, or did maintenance and platform limitations create more work down the line?
r/softwarearchitecture • u/DeepEngineeringPackt • 2d 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/Important_Yogurt_468 • 2d ago
Article/Video Circuit Breaker Pattern: Why Microservices Crash
youtu.ber/softwarearchitecture • u/mostaptname • 2d ago
Article/Video Inside Apache Lucene 9.9 and Elasticsearch 8.19: FSTs, Block-Max WAND, Segments & Translog
youtu.ber/softwarearchitecture • u/Accurate-Screen8774 • 2d 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/Candid_Report_5770 • 1d ago
Discussion/Advice AI Truth substrate
Hi All,
A lot of the issues we run into with AI today aren't necessarily problems with the models themselves—they're gaps in the underlying architecture where humans, apps, and AI interact.
To tackle this from a different angle, I built VerityNow, a domain-agnostic, path-oriented transactional truth substrate. It's not just a whitepaper or theory; there's a working implementation of about 10,500 lines of code along with demo apps. Because the core design is fairly straightforward, it should have a low barrier to adoption while opening up a lot of room to build on.
My goal is to eventually turn VerityNow into an open-source foundation. Right now, I'm looking for independent evaluation, honest technical scrutiny, and people or organizations interested in collaborating or supporting further research.
I've made three documents publicly available if you want to dig into the details:
- VerityNow — The architectural foundation
- Path-Centric Design Guide — The design methodology and practical application
- Mini-WWW — Independent collaboration between humans, applications, and AI (Invitation to Collaborate)
r/softwarearchitecture • u/Intelligent_Table913 • 1d ago
Discussion/Advice Tech stack for a small nonprofit membership website (~100 users) on a small budget?
I’m building a simple website for a small youth nonprofit club. I am an officer of the club and the president wanted a custom website built ASAP, so I have to use AI tools to speed it up.
Website Requirements
Public landing page with member registration, sign-in options, testimonials, About section
- Email/password authentication and role-based access (officers, speakers)
Member portal
- Create/edit meetings, have them populate on calendar
- drag-and-drop agenda item ordering
- Member dashboards with speech progress and meeting-role history
- Officer dashboard to manage members, meetings, agendas, and resources
- Metrics dashboard to show membership growth, speeches/roles completed and meeting data
- Database storing member info, meetings, speeches, and meeting roles
Priorities:
Fast, lightweight frontend and good mobile performance
- Hybrid combo of server-side rendering and client-side rendering (hydration)?
Free database
- No inactivity-based project shutdown or manual database reactivation.
- Not much storage needed (only 100 users max, 25-30 meetings in a year)
- Responsive app design that works on desktop, laptop, iPads and phones
- Simple authentication and authorization (email + OTP, or email + password)
- Easy development and maintenance for a small app
Budget: $100
- I can spend $20-30 on AI tools for the first 2 months to build out the app, and then choose a cheaper or free AI tool to debug any prod issues
My Dev Experience:
- Front-End: HTML, CSS, JavaScript, jQuery, React
- Back-End: Spring Boot, ASP.NET, Express.js
- Database: SQL Server, MySQL, DynamoDB, some MongoDB
-------------------------
I’ve listed below the options I’m considering. Since I have very little time, I need to make decisions fast and thought I could get your input!
Front-End:
React + Vite
- Fast, interactive UIs (drag and drop agenda items)
- More in-depth error messages, easier to debug
- Mature ecosystem, large community, extensive libraries.
- Vite provides fast development/build tooling.
- More verbose
- Virtual DOM overhead
Svelte
- SvelteKit includes routing, server-side rendering, and backend endpoints
- Simpler, lighter, avoids virtual DOM
- Smaller ecosystem than React
- Error messages are vague, limited logging?
Astro
- Ships zero JS for static content
- You can plug in interactive components through React, Svelte, or Cue
- Very fast load speeds
- Astro Actions to handle form submission without separate API server
- Not built for lots of interactivity in app
- Managing states between separate Astro islands gets tricky, increasesÂ
- Full-page reloads by default
- More workarounds to connect pieces or integrate other libraries
Next JS
- Full-stack React framework with server-side rendering, routing, server components, and backend functionality.
- More concepts and complexity than I may need for a small application.
Database (relational SQL makes most sense)
Supabase
- Managed PostgreSQL with database APIs, authentication, storage, and realtime functionality.
- Free tier: 500 MB database and 5 GB egress.
- Free projects pause after a week of inactivity; manual reactivation is required.
- Could prevent automatic pausing by using a scheduled daily database ping.
Aiven
- Managed PostgreSQL database.
- Free tier: 1 GB storage, 1 GB RAM, and 1 CPU.
- Free services can be powered off after inactivity; no high availability or SLA.
Neon
- Serverless PostgreSQL with automatic scaling and sleep/wake behavior.
- Free tier: 1 GB storage and 100 compute-hours per month.
- Automatically suspends compute after inactivity; first request afterward may experience a cold start.
Authentication:
Supabase Auth
- Integrated with Supabase PostgreSQL, row-level security, and user management
- Free-tier limits and project inactivity pausing apply
Firebase Auth
- Managed email/password authentication, verification, and password resets.
- Generous free tier and easy integration.
- Separate from the database; role-based authorization must be implemented separately.
Auth0
- Dedicated authentication platform with social login, passwordless login, and role/permission features.
- Free tier has user and feature limits.
- More complex than needed
AI Tool:
Codex
- $8/month for Go plan
- $20/month for Plus plan
- AI-integrated IDE
- Includes upgraded ChatGPT app/features
Claude Code
- $20/month for Claude Pro
- Most comprehensive, good at understanding/modifying larger codebases
- Extension/plug-in that I have to add to VS Code
- Pay-as-you-go tokens?
VS Code with Github Copilot
- Free tier has only 50 queries and one basic agent offered
- Pro plan is $10/month
Cursor
- VS Code-like AI-powered IDE with agent workflows
- $8/month for Grok/Composer models
- $30/month, but other non-Grok models are billed separately
Hosting
Github Pages, Netlify, Cloudflare?
- What are the cheapest options with no caveats/catches?
What combo of frameworks/tools would you recommend for my case? Are there any significant free-tier limitations or reliability issues I should know about? I honestly just need something simple and free/cheap, I’m def overthinking it.
Thank you so much in advance!
r/softwarearchitecture • u/Itchy-Tune-5059 • 2d 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/r-spriebsch • 2d 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/rgancarz
•
4d 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/Sweet-Yoghurt-7097 • 3d 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/Queasy_Speaker7227 • 4d 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.