Re: protocol definition

2014-02-10 Thread Jun Rao
omain logic. Invariably aspects of this representation would end up > leaking into the protocol. > 7. It was very hard to figure out what the protocol was from the code since > the definition was embedded in byte munging code spread out over dozens of > files. > > So that was

Re: protocol definition

2014-02-08 Thread David Arthur
with domain logic. Invariably aspects of this representation would end up leaking into the protocol. 7. It was very hard to figure out what the protocol was from the code since the definition was embedded in byte munging code spread out over dozens of files. So that was definitely bad. We consid

Re: protocol definition

2014-02-08 Thread Jay Kreps
t;> requests. >> 6. The same class that defined the protocol was used throughout the code. >> So what were intended to be dumb DTOs ended up getting loaded up with >> domain logic. Invariably aspects of this representation would end up >> leaking into the protocol. >&g

Re: protocol definition

2014-02-07 Thread David Arthur
entation would end up leaking into the protocol. 7. It was very hard to figure out what the protocol was from the code since the definition was embedded in byte munging code spread out over dozens of files. So that was definitely bad. We considered moving to an off-the-shelf protocol definition

Re: protocol definition

2014-02-07 Thread Guozhang Wang
ing a version change. Guozhang On Fri, Feb 7, 2014 at 3:23 PM, Jay Kreps wrote: > If what you are saying is that we should define the java code and kind of > "automatically" generate the protocol off of that then I would be against > that as I really want the protocol definition

Re: protocol definition

2014-02-07 Thread Jay Kreps
If what you are saying is that we should define the java code and kind of "automatically" generate the protocol off of that then I would be against that as I really want the protocol definition to be the source of truth. It should be 100% obvious when you are changing the protocol. -Ja

Re: protocol definition

2014-02-07 Thread Jay Kreps
same class that defined the protocol was used throughout the code. > > So what were intended to be dumb DTOs ended up getting loaded up with > > domain logic. Invariably aspects of this representation would end up > > leaking into the protocol. > > 7. It was very hard to figure o

Re: protocol definition

2014-02-07 Thread Guozhang Wang
d up with > domain logic. Invariably aspects of this representation would end up > leaking into the protocol. > 7. It was very hard to figure out what the protocol was from the code since > the definition was embedded in byte munging code spread out over dozens of > files. > >

protocol definition

2014-02-07 Thread Jay Kreps
col. 7. It was very hard to figure out what the protocol was from the code since the definition was embedded in byte munging code spread out over dozens of files. So that was definitely bad. We considered moving to an off-the-shelf protocol definition language like avro or protocol buffers.