[infinispan-issues] [JBoss JIRA] (ISPN-7765) Allow HotRodDecoder to be shared between Netty pipelines
Radim Vansa (JIRA)
issues at jboss.org
Fri Jan 26 08:55:00 EST 2018
[ https://issues.jboss.org/browse/ISPN-7765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13524421#comment-13524421 ]
Radim Vansa commented on ISPN-7765:
-----------------------------------
I think that we could make the server more effective if we tightly bind the decoder to channel/currently processed request. That way we don't have to re-allocate some data structures (e.g. CacheDecodeContext) for each request. The number of open channels should be small (limited) compared to number of requests executed on these.
> Allow HotRodDecoder to be shared between Netty pipelines
> --------------------------------------------------------
>
> Key: ISPN-7765
> URL: https://issues.jboss.org/browse/ISPN-7765
> Project: Infinispan
> Issue Type: Enhancement
> Reporter: Sebastian Łaskawiec
> Assignee: William Burns
>
> Currently {{HotRodDecoder}} instance can not be shared between Netty pipelines as {{HotRodEncoder}}. Currently each pipeline creates its own instance by calling:
> {code}
> server.getDecoder()
> {code}
> in {{NettyChannelInitializer#initializeChannel}}. We could probably make it a bit more efficient (or limit allocation rate at least) if we allow sharing single instance between pipelines.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the infinispan-issues
mailing list