Hi Carsten,

On Wednesday, June 11, 2014 2:35:27 AM UTC-7, Carsten Saathoff wrote:
>
>
>
> And there is another aspect. Especially for larger projects microservices 
> are great to "enforce" a share nothing philosophy. Using akka 
> serialization, I either have to share the messages or use protobuf + code 
> generation, which is again more complicated. I am not sure whether that can 
> be achieved with CBOR standard you mentioned, but using JSON via HTTP has 
> the advantage that I don't have to share code while it's still very easy to 
> use.
>

I think the "JSON means you don't have to share code" is a bit false.   
 Everywhere that uses the JSON interface, especially if it is a compiled 
language like Java or Scala, is going to need quite a bit of scaffolding, 
most likely a client, and serialization/deserialization code to work with 
that REST API.   If you really stick by the "shared nothing", this 
significant chunk of code must be duplicated, leading to errors and a 
maintenance nightmare.   It is true that with Akka case classes you _must_ 
share the code, but I would say in practice this is far easier than having 
to set up clients and deser code at every client service.

The major advantage of JSON is actually the flexibility of its map-like API 
means you can be more relaxed in terms of introducing new fields or API 
changes.   CBOR is like JSON in this respect.
 

>
> But it would be awesome to have an Akka based microservice platform that 
> solves some of the common problems discussed in this thread in a nice way.
>
> best
>
> Carsten
>

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

Reply via email to