secretsauceai / secret_sauce_ai

Secret Sauce AI: a coordinated community of tech minded AI enthusiasts
Apache License 2.0
65 stars 5 forks source link

Bus: "Universal Protocol" design #23

Open sheosi opened 3 years ago

sheosi commented 3 years ago

Seeing as the community is swarming towards microservices (because of several benefits: easier dependency management, easy concurrency, sandboxing ...) I think that designing a common protocol has benefits that potentially can revolutionize our community, mostly:

Now that we know the "why?" the "what?" should be discussed, or in other terms, which features should be included, here are some but consider this an open list:

Of course there might be more out there, anyone with a suggestion feel free to comment.

Finally, there's the "how?" which is decissive, as it will determine the robustness and performance of our solution. Some questions about how to build this:

sheosi commented 3 years ago

Some of my own thoughts about this:

sheosi commented 2 years ago

One point I forgot to mention and seems rather important is mobile systems and massging protocols. Talking to people about using MQTT (though the same applies to any protocol) as messaging protocol on mobile systems (iOS and Android ) I get the idea that communication can be lagged or even broken in those systems when sending data from one process to another in the voice assistant chain due to the fact that they mean to restrict their processes CPU time as much as possible for battery life sake. Which means that for something to work there reliable IPC must be used (Snips does some mention of this too) and each platform has their own IPC mechanism, meaning that wathever we make must be able to at least work on: the messaging protocol selected, on XPC and on wathever is chosen for Android (there are several, can't decide which one should be used).

secretsauceai commented 2 years ago

The only way to determine what is best is an old fashion benchmark.