I am trying to make a real-time publish/scribe module using juggernaut(nodejs plugin) Juggernaut's client is usually Ruby not php. but, my project's main language is php. so I have to make some php things.
Clients Subscribing is okay, it's very easy. But, the problem is Publish, and write message.
After long googling, I found out that Juggernaut do not allow client's direct publish. So, I made a conclusion.
Publish machanism : client's Javascript -> Php(Phpredis) -> Juggernaut DB(Redis) -> Juggernaut
and then Juggernaut publish to every subscribers. But, the 4 step is too many things -_-; My thought is right or wrong? I can't find any hint from Juggernaut github.
any comments welcome~