4 ms·
So my question is how do you do modular development that spreads across multiple portions of the stack? Because just saying "put in a library" doesn't seem a s
by jmchuster 5y ago
So my question is how do you do modular development that spreads across multiple portions of the stack? Because just saying "put in a library" doesn't seem a sensible answer.
SQLite is a great library, but that's more of a business-agnostic tool. How do you encapsulate a dedicated portion of business logic, let's say, managing image datasets for building machine learning models. e.g. I want some apis for basic CRUD on datasets, i want to automatically create new versions of existing datasets as images get published, i want to generate stats in the background for these datasets, i want a ui to review and manage datasets for model building, and then i want all this packaged in a single library?
Also, to clarify, I'm not playing a game here. I don't care about theoreticals, I want to hear about how people have actually solved their problems, so I can then evaluate and use those approaches. So I'm trying to get at something a little bit more specific and less handwavy.
- Tabular-Iceberg 5y agoYou write all the same code as you would your microservice, you just don't bother exposing the public methods over a network protocol, you just import them where you want to use them.
- jmchuster 5y agoI don't expose the public method of my HTML file over a network protocol? Again, are we talking about the same thing?
- Tabular-Iceberg 5y agoMicroservices are typically thought to be standalone applications that only cover part of the business domain, and then communicate with other services over things like JSON HTTP APIs, message queues, RPC calls, etc. In a monolithic architecture these would run in the same address space, be separated into modules by the language's own means of abstraction, and the communication between them would be done by function or method calls. I don't see what HTML files have to do with it, what do you think microservices are?