akiradeveloper / akashic-storage

Filey system backed S3-compatible storage in Scala/Akka-Http
Apache License 2.0
22 stars 2 forks source link

Use asyncBody in request with payload #28

Closed akiradeveloper closed 8 years ago

akiradeveloper commented 8 years ago

But the rule of thumb is that finch doesn't allow blocking inside endpoint context, iow we mustn't use Await but return the Future value to the Output (e.g. Ok).

This results in not trivial changes in the fundamental design. This is even harder than using streaming in GET stuffs. So, should be done earlier.

akiradeveloper commented 8 years ago

If Future is Monad in Cats, I can separate the actual instance from the S3 logics so I can keep it unaware of this issue.