Hi. I'm exploring Marshallers API and looking for the way to implement the following: - Get an instance of Aggregate in routes, e.g. a list of posts - Provide a number of possible content-types for the Aggregate, e.g. `application/agg+json`, `application/agg-with-user+json` - For some of accept content-types I want to be able to make a database call and resolve a Future, e.g. Future[User] for the latter - Then return json.
Given Marshallers types I can provide a list of Marshallers (asynchronously, as Future[List[Marshaller[T]]]), but then everything I have is a synchronous lazy Marshalling[A] instance with () => A inside. I don't want to make all requests while collecting a list of Marshallers, and I don't want to block inside Marshaller. Do I misunderstand the concept of Marshallers? Or is there another way to use Marshallers infrastructure -- without overriding `complete` directive? Maybe we need Marshalling[_] be asynchronous as well? 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 akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.