如何在负载均衡的场景中使用没有http粘性会话的opendolphin?

时间:2016-06-01 05:19:48

标签: opendolphin canoo dolphin-platform

我读到“那些想要享受绑定,表示模型结构,测试功能,工具包独立性以及OpenDolphin的所有其他好处,但更喜欢REST(或其他)远程数据访问的人,可以使用OpenDolphin内存配置“

但我在文档中找不到任何进一步的提示?

我不能依赖我的负载均衡网络服务器中的粘性会话。 因此,我需要为http会话状态插入不同的东西。

是否为此准备了opendolphin配置属性?如果没有可用的插件点?

1 个答案:

答案 0 :(得分:0)

since OpenDolphin and Dolphin Platform use the remote presentation model pattern to synchronize presentation models between client and server you need a state on the server. Currently this state is defined in the session. As you said it's no problem to use load balancing with sticky sessions to provide several server instances. If you need dynamic updates between the clients a distributed event bus like hazelcast will help.

Therefore I need to plugin something different for the http session state.

What do you need? With the last version (0.8.6) of Dolphin Platform you can access the http client in the client API and provide custom headers or cookies. Will this help? Can you please tell us what you need or open an issue at the Dolphin Platform github repo?