0x41gawor / lupus

Lupus - design and run loops in Kubernetes. Part of my Master Thesis
0 stars 0 forks source link

What about concurrency in such loop architecture? #5

Open 0x41gawor opened 4 days ago

0x41gawor commented 4 days ago

image

Execute will get ram decision and execute commands immediately. What about cpu then? Execute should wait for all input tags in this loop iteration before it will send commands.

Actually it's not Execute that has to wait. Execute will receive commands and execute them immediately. The "last" Decide has to gather all its input data and come up with ultimate set of commands.

This conversation converges into the General Conversation about "Data".

0x41gawor commented 4 days ago

Ok, maybe such architecture is non-sense? And it should be done like this: image

In this approach all of the decision logic will be placed in a single element, and the actions will operate on data object.

First we will focus on such approach, to develop robust system of Data fields manipulation.

Later we will rethink what to do about multiple input types representing managed-system state.