<div dir="ltr">Hey Tristan!<div><br></div><div>If I understood you correctly, you&#39;re suggesting to enhance the ProtocolServer to support multiple EmbeddedCacheManagers (probably with shared transport and by that I mean started on the same Netty server).</div><div><br></div><div>Yes, that also could work but I&#39;m not convinced if we won&#39;t loose some configuration flexibility. </div><div><br></div><div>Let&#39;s consider a configuration file - <a href="https://gist.github.com/slaskawi/c85105df571eeb56b12752d7f5777ce9">https://gist.github.com/slaskawi/c85105df571eeb56b12752d7f5777ce9</a>, how for example use authentication for CacheContainer cc1 (and not for cc2) and encryption for cc1 (and not for cc1)? Both are tied to hotrod-connector. I think using this kind of different options makes sense in terms of multi tenancy. And please note that if we start a new Netty server for each CacheContainer - we almost ended up with the router I proposed.</div><div><br></div><div>The second argument for using a router is extracting the routing logic into a separate module. Otherwise we would probably end up with several if(isMultiTenent()) statements in Hotrod as well as REST server. Extracting this has also additional advantage that we limit changes in those modules (actually there will be probably 2 changes #1 we should be able to start a ProtocolServer without starting a Netty server (the Router will do it in multi tenant configuration) and #2 collect Netty handlers from ProtocolServer).</div><div><br></div><div>To sum it up - the router&#39;s implementation seems to be more complicated but in the long run I think it might be worth it. </div><div><br></div><div>I also wrote the summary of the above here: <a href="https://github.com/infinispan/infinispan/wiki/Multi-tenancy-for-Hotrod-Server#alternative-approach">https://github.com/infinispan/infinispan/wiki/Multi-tenancy-for-Hotrod-Server#alternative-approach</a></div><div><br></div><div>@Galder - you wrote a huge part of the Hot Rod server - I would love to hear your opinion as well.</div><div><br></div><div>Thanks</div><div>Sebastian</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 10, 2016 at 10:59 AM, Tristan Tarrant <span dir="ltr">&lt;<a href="mailto:ttarrant@redhat.com" target="_blank">ttarrant@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Not sure I like the introduction of another component at the front.<br>
<br>
My original idea for allowing the client to choose the container was:<br>
<br>
- with TLS: use SNI to choose the container<br>
- without TLS: enhance the PING operation of the Hot Rod protocol to<br>
also take the server name. This would need to be a requirement when<br>
exposing multiple containers over the same endpoint.<br>
<br>
 From a client API perspective, there would be no difference between the<br>
above two approaches: just specify the server name and depending on the<br>
transport, select the right one.<br>
<br>
Tristan<br>
<span class=""><br>
On 29/04/2016 17:29, Sebastian Laskawiec wrote:<br>
&gt; Dear Community,<br>
&gt;<br>
&gt; Please have a look at the design of Multi tenancy support for Infinispan<br>
&gt; [1]. I would be more than happy to get some feedback from you.<br>
&gt;<br>
&gt; Highlights:<br>
&gt;<br>
</span>&gt;   * The implementation will be based on a Router (which will be built<br>
&gt;     based on Netty)<br>
&gt;   * Multiple Hot Rod and REST servers will be attached to the router<br>
<span class="">&gt;     which in turn will be attached to the endpoint<br>
</span>&gt;   * The router will operate on a binary protocol when using Hot Rod<br>
<span class="">&gt;     clients and path-based routing when using REST<br>
</span>&gt;   * Memcached will be out of scope<br>
&gt;   * The router will support SSL+SNI<br>
<span class="im HOEnZb">&gt;<br>
&gt; Thanks<br>
&gt; Sebastian<br>
&gt;<br>
&gt; [1]<br>
&gt; <a href="https://github.com/infinispan/infinispan/wiki/Multi-tenancy-for-Hotrod-Server" rel="noreferrer" target="_blank">https://github.com/infinispan/infinispan/wiki/Multi-tenancy-for-Hotrod-Server</a><br>
&gt;<br>
&gt;<br>
</span><span class="im HOEnZb">&gt; _______________________________________________<br>
&gt; infinispan-dev mailing list<br>
&gt; <a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
&gt;<br>
<br>
--<br>
</span><span class="HOEnZb"><font color="#888888">Tristan Tarrant<br>
Infinispan Lead<br>
JBoss, a division of Red Hat<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
infinispan-dev mailing list<br>
<a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br>
</div></div></blockquote></div><br></div>