Re: [akka-user] spray cache and akka http

2016-06-01 Thread Konrad Malawski
I made a ticket for it, we'd happily someone do the porting / contribution:
https://github.com/akka/akka/issues/20679

-- 
Konrad `ktoso` Malawski
Akka  @ Lightbend 

On 1 June 2016 at 09:48:12, Mohnish Kodnani (mohnish.kodn...@gmail.com)
wrote:

Hi,
We have a project where we need to talk to hadoop/hdfs to download some
files from it. This requires that we have protobuf 2.5.0. This is a new
cluster for us and before this the older hadoop version was using protobuf
2.4.0
We were using spray 1.3 and akka 2.3 and things were working fine. But now
the same service is failing due to incompatible protobuf dependencies.
I tried to upgrade our project to akka 2.4.6 because I read that akka 2.4.x
allows clients to specify their own protobuf version.
However, our service was using spray cache on top of the routes and I have
not seen any example of caching directives in akka http and if I include
spray cache dependency along with akka-http it doesnt go well, because the
cache directive expect spray.routing.RequestContext => Unit, while the
internal route that we have is akka.http.scaladsl.server.RequestContext =>
akka.http.scaladsl.RouteResult

Is spray cache migrating to akka-http ?


Thanks
Mohnish

--
>> 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.

-- 
>>  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.


Re: [akka-user] spray cache and akka http

2016-06-01 Thread Konrad Malawski
Quite honestly it's just one simple file you could copy and adapt for Akka
HTTP:
https://github.com/spray/spray/tree/master/spray-caching/src/main/scala/spray/caching

We'd gladly see this as contribution in Akka HTTP actually, just need to
find a place for it.
Let us know if you'd like to contribute the port - thanks in advance!

-- 
Konrad `ktoso` Malawski
Akka  @ Lightbend 

On 1 June 2016 at 09:48:12, Mohnish Kodnani (mohnish.kodn...@gmail.com)
wrote:

Hi,
We have a project where we need to talk to hadoop/hdfs to download some
files from it. This requires that we have protobuf 2.5.0. This is a new
cluster for us and before this the older hadoop version was using protobuf
2.4.0
We were using spray 1.3 and akka 2.3 and things were working fine. But now
the same service is failing due to incompatible protobuf dependencies.
I tried to upgrade our project to akka 2.4.6 because I read that akka 2.4.x
allows clients to specify their own protobuf version.
However, our service was using spray cache on top of the routes and I have
not seen any example of caching directives in akka http and if I include
spray cache dependency along with akka-http it doesnt go well, because the
cache directive expect spray.routing.RequestContext => Unit, while the
internal route that we have is akka.http.scaladsl.server.RequestContext =>
akka.http.scaladsl.RouteResult

Is spray cache migrating to akka-http ?


Thanks
Mohnish

--
>> 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.

-- 
>>  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.


[akka-user] spray cache and akka http

2016-06-01 Thread Mohnish Kodnani
Hi, 
We have a project where we need to talk to hadoop/hdfs to download some 
files from it. This requires that we have protobuf 2.5.0. This is a new 
cluster for us and before this the older hadoop version was using protobuf 
2.4.0
We were using spray 1.3 and akka 2.3 and things were working fine. But now 
the same service is failing due to incompatible protobuf dependencies. 
I tried to upgrade our project to akka 2.4.6 because I read that akka 2.4.x 
allows clients to specify their own protobuf version. 
However, our service was using spray cache on top of the routes and I have 
not seen any example of caching directives in akka http and if I include 
spray cache dependency along with akka-http it doesnt go well, because the 
cache directive expect spray.routing.RequestContext => Unit, while the 
internal route that we have is akka.http.scaladsl.server.RequestContext => 
akka.http.scaladsl.RouteResult

Is spray cache migrating to akka-http ?


Thanks
Mohnish

-- 
>>  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.