XMPP allows for servers communicating seamlessly with each other, forming a global ‘federated’ IM network. I want to know the following assumptions is reasonable? please give direction how to implemente jitsi federated shard？
Given a scenario, User A login into shard A and keep his long connection validate. User B login into shard B and keep his long connection validate. User A want group call with User B. User A in jitsi meet client app select and invite User B. User A app send the xmpp group call request to prosody by the long connection channel. prosody in shard A then look up User B’s location and find user B in shard B at last, So prosody in shard A relay the group call invite to shard B by XMPP s2s protocol. shard B prosody send to invite to user B’s client app. After User B answer the call，User B client app connect to JVB server which assign by shard A jicofo arranged.