Lots of database actor questions, but I couldn't find one that directly addressed data size limits:
I want to send requests for data from a frontend to a Cluster Singleton which will forward each request to a Database Actor. The database actor runs query, then from the Row result constructs a domain object. this works great for case class Tweet(id: TweetId, user: User, text: Text, createdAt: Date). But what if we need to gather and pass around data from much wider tables than that? say we need to gather a bunch of user data. profile data, preference data, history, purchases, moderately large collection, etc. for use both by the akka cluster that performs our logic, and also simply to pass data to the frontend for templating. Put simply, potentially much more than the 120Kb maximum-frame-size. thus the following conundrum: 1. want to limit number of queries to database per data request, since that is the biggest bottleneck, area for headache. (although im using an async driver so its not as bad as blocking jdbc) 2. most data will be requested together, so want to to be able to get all row data in one query 3. thus the database actor will have too much data to send as a message back to its parent and ultimately to frontend actor of course i could split the query results into multiple messages, but that necessitates changing the whole actor system. can chunking or some kind of dedicated channel save me from having to completely re-think my backend? thanks! -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
