lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Linbin Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-3192) NettySolrClient (supported by netty/protobuf)
Date Fri, 26 Jun 2015 04:31:05 GMT

    [ https://issues.apache.org/jira/browse/SOLR-3192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14602380#comment-14602380
] 

Linbin Chen commented on SOLR-3192:
-----------------------------------

https://github.com/apache/lucene-solr/pull/165

> NettySolrClient (supported by netty/protobuf)
> ---------------------------------------------
>
>                 Key: SOLR-3192
>                 URL: https://issues.apache.org/jira/browse/SOLR-3192
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 5.2.1
>            Reporter: Linbin Chen
>              Labels: netty
>             Fix For: Trunk, 5x
>
>         Attachments: SOLR-3192-base-5.2.1.patch
>
>
> solr support netty tcp, netty/tcp can handle asynchronous,efficient,keepalive ...
> it's used on solr cloud or solrj
> solr.proto maybe
> {code:java}
> package org.apache.solr.client.solrj.impl.netty.protocol;
> option java_package = "org.apache.solr.client.solrj.impl.netty.protocol";
> option java_outer_classname = "SolrProtocol";
> option optimize_for = SPEED;
> message Param {
> 	required string key = 1;
> 	// string[]
> 	repeated string value = 2;
> }
> message ContentStream {
> 	optional string name = 1;
> 	optional string sourceInfo = 2;
> 	optional string contentType = 3;
> 	required int64 size = 4;
> 	required bytes stream = 5;
> }
> message SolrRequest {
> 	required int64 rid = 1;
> 	optional string collection =2;
> 	required string path = 3;
> 	// multi param
> 	repeated Param param = 4;
> 	// multi content stream
> 	repeated ContentStream contentStream = 5;
> 	optional string method = 6;
> }
> message ResponseBody {
> 	required string contentType = 1;
> 	required bytes body = 2;
> }
> message KeyValue {
> 	required string key = 1;
> 	required string value = 2;
> }
> message ExceptionBody {
> 	required int32 code = 1;
> 	optional string message = 2;
> 	repeated KeyValue metadata = 3;
> 	optional string trace = 4;
> }
> message SolrResponse {
> 	required int64 rid = 1;
> 	optional ResponseBody responseBody = 2;
> 	//maybe multi Exception
> 	repeated ExceptionBody exceptionBody = 3;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message