Fabric Message is too large

房东的猫 提交于 2019-12-10 13:04:50

问题


I'm trying to pass 5MB~ data from a service to an actor, and I'm getting the error:

Fabric Message is too large

How can I increase the maximum size that can be transferred between micro-services?

I looked at the following page to see my options.

I tried setting:

<Section Name="ServiceReplicatorConfig">
    ...
    <Parameter Name="MaxReplicationMessageSize" Value="1073741824" />
</Section>

Please help.


回答1:


Somebody helped me on GitHub with the following:

In order to set maximum size for the remoting transport, you can use the following attribute and place it on your actor interface assembly or configure the maximum message size in the ServiceProxyFactory and ServiceRemotingListener creation.

[assembly: FabricTransportActorRemotingProvider(MaxMessageSize = 1073741824)]

https://msdn.microsoft.com/en-us/library/azure/microsoft.servicefabric.actors.remoting.fabrictransport.fabrictransportactorremotingproviderattribute.aspx

The discussion in GitHub.




回答2:


Can you just pass a reference to that data like a URL to a blob/document storage? Passing 5MB of data within the SF service/actors is quite big and SF is not designed to store that big of data or state.



来源:https://stackoverflow.com/questions/36957369/fabric-message-is-too-large

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!