#should i create a layer of abstraction using actors for database calls?
1 messages · Page 1 of 1 (latest)
Which tutorial was it that you watched? I have a feeling I know, and in that case, the actor was the cache - it was holding the data. In the case of a DB, the DB holds the data, so you don't need to use an actor. Passing the connection in context is better.
If I'm right about the video you watched, the thing being passed around in the context there was a subject for the actor, which is the way to communicate with the actor. much like a connection is the method of communication with your DB
oh i think i get it now! and yes it was your pokemon battle api 😆 . thanks a lot for the answer and the videos too, they are incredible resources.