3 ms·
> if you're writing a small, stateful application with no need to expose functionality externally, it can be a good fit. Small in what way? For me a "large" ap
by globular-toast 2y ago
> if you're writing a small, stateful application with no need to expose functionality externally, it can be a good fit.
Small in what way? For me a "large" application is one with many business rules, not one with many rows in the database. So I would have said DDD was more suitable for the "large" application, not the small one.
Yeah, it's more likely that people will write software to handle large amounts of data, but that data has to come from somewhere. Somewhere there must still be software that makes small transactional changes according to business rules. But perhaps this is what you meant by the "small stateless application".
The main thing for me is that it should be possible to write business rules in some language that isn't SQL, because SQL only supports CRUD. This idea is espoused by SICP, Clean Architecture, DDD etc. Using something like DDD is beneficial only because other developers already know the concepts like repository etc. But it could be anything that works.