this article is solution of this assignment Alchemyst-ai

We are given an AI system which we can run a single system in a single process?

User request -> model -> response

But what problems we can have?

So, instead of having everything in a single system we will split responsibilies.

But one question might be coming to your mind like if we put things on a different machines then how will talk?

- By network communication!!
	- by invoking functions remotely (Remote Procedure Call[RPC])

Pasted image 20260524220840.png

Now, think - do you expose internal machines publicly? like do you wants that anyone would come and make any no. of requests to our model?


Now, let's explore the two workers first

caller-worker or api-worker(Typescript)