You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Scott Stults <ss...@opensourceconnections.com> on 2013/07/22 13:54:35 UTC

Protocol serialization

I'd like to use a Protocol for making a Solr UpdateHandler, but it seems like I'm fighting the "spirit" of Protocol in that it would really like to have a two-way conversation between endpoints. I don't think I can do this since UpdateHandlers are basically a servlet that has a single request/response cycle.

Am I trying to force Protocol to do something it isn't built for? The Protocol _model_ really fits what I'm trying to do. Is Protocol.getMessages().getRequest() to construct the payload of the servlet request the right path?


Thank you,
Scott

Re: Protocol serialization

Posted by Scott Stults <ss...@opensourceconnections.com>.
Excellent. Thank you!

On Aug 13, 2013, at 4:21 PM, Doug Cutting <cu...@apache.org> wrote:

> On Mon, Jul 22, 2013 at 4:54 AM, Scott Stults
> <ss...@opensourceconnections.com> wrote:
>> Is Protocol.getMessages().getRequest() to construct the payload of the servlet request the right path?
> 
> If Protocol provides a useful way to define your messages but the
> existing wire formats are not appropriate then using getRequest()
> directly seems entirely reasonable to me.
> 
> Doug


Re: Protocol serialization

Posted by Doug Cutting <cu...@apache.org>.
On Mon, Jul 22, 2013 at 4:54 AM, Scott Stults
<ss...@opensourceconnections.com> wrote:
> Is Protocol.getMessages().getRequest() to construct the payload of the servlet request the right path?

If Protocol provides a useful way to define your messages but the
existing wire formats are not appropriate then using getRequest()
directly seems entirely reasonable to me.

Doug