r/CreateMod • u/gonzo_gonzales • 2d ago
Discussion Microservices-based factory
Hi all!
I attempted to build a universal factory based on a microservices architecture. Each operation involving items constitutes an isolated place, which is linked to others via a system of "frog-based" logistics. Factory gauges define the sequence of operations, while chain transport the results of each microservice.
Overall, the concept is quite workable, but there is one annoying nuance. Since the factory is universal, it should be capable of producing any item, provided the chain is set up correctly. However, the mechanisms within each microservice do not know what specific item they are currently producing; they simply perform their own primitive tasks.
I’ve also run into an issue with getting the results out of the mechanism. Since the item varies each time, I can’t set up filters on the chutes or funnels. A chute can extract both output and input ingredients from a mechanism. In other words, ingredients arrive in a microservice's input buffer and are placed onto a depot, saw, basin or similar component; the output chute then simply picks up those incoming ingredients.
Is there any way to set filters dynamically ? Or perhaps a way to prevent the retrieval of incoming ingredients ? Or perhaps there are other ways to carry out my idea that just haven’t occurred to me?
2
u/MrPerson2121 2d ago
the only thing i can think of to "set the filters dinamically" is to move different brass depots with a sticky mechanical piston and sequenced gearshifts, no idea what you mean by "retrieval of incoming ingredients" means and like 40 other words in this post, you really dont need to use complicated words, youre trying to get an answer not write an essay or something
1
u/Chaosfox_Firemaker 2d ago
Im a little bit fuzzy on your goal, let me see if ive got it right. You have a bunch of tiny factories, all hooked togeather with chain conveyers and packaging. What I'm confused by is why you would need any filtering.
Each "microservice" orders its needs via gauge, and then pushes anything it makes to a conveyer accesable buffer. If another microservice needs it, it can just order it via gague.
I suppose im a bit fuzzy what you mean when you say "extract from the mechanism", as "mechanism" could be refering to a few different things here and its getting a bit garbled in translation.
2
u/912ehd 2d ago
Im doing this in my creative world right now. There are two options as far as ive figured out.
1
u/Real_Individual8075 2d ago
There are Filter Link from addon Factory Controller to set filter dynamically according to gauge target, but it currently cannot handle filters which produce by-products (such as some washing recipes)