简体   繁体   中英

Does Akka.net actor suitable for GET and Search Operation?

We are using akka.net actor model in current project. I used an entity actor to handle insert, update and delete operations on it. In a case of search or get does actor model not suit?

If it is support in UI how it possible to get result (weather to used Ask function)

Does it not good practice to use akka.net actor model for get and query data?

You could implement a some equivalent of GetState operation, however IMHO in case of UI, I think that much better is to perform a conceptual switch. Instead of making UI asking if state of an actor has changes, you could subscribe client to get updates about actor state changes when they actually happen.

Akka.Streams is particularly nice and handy to implement this sort of functionality ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM