peatio icon indicating copy to clipboard operation
peatio copied to clipboard

Remove Pusher Dependency

Open ryanisab opened this issue 8 years ago • 13 comments

Pusher locks this project into using their service to scale websocket connections. Ideally this project should stand up a websocket server and the implementor should then be able to decide how to scale the websocket traffic independently instead of being locked in to one specific vendor. This is especially important if running the project as a component in a locked down SOA deployment as scaling will need to happen on the web facing proxy end.

ryanisab avatar Jan 12 '18 03:01 ryanisab

Hello @ryanisab!

We're going to migrate to Rails 5 soon, then we will replace pusher with ActionCable.

dmk avatar Jan 12 '18 09:01 dmk

Hello @ryanisab

I think you can ride with https://github.com/stevegraham/slanger before we will migrate to ActionCable.

yivo avatar Feb 06 '18 20:02 yivo

Hi

@dkkoval @yivo When do you think is the migratoin to ActionCable? Is it in a week, in a month or much more later?

Thank you

JoeWallCrypt0 avatar Mar 02 '18 21:03 JoeWallCrypt0

@ryanisab @dkkoval @JoeWallCrypt0 Hi guys

I can confirm pusher slanger works well with peatio, including funds & markets page.

yivo avatar Mar 12 '18 10:03 yivo

@yivo it looks like slanger is not working with ruby 2.5.0. it gives "ERROR: Failed to build gem native extension." Only solution is to run slanger on another server with lower version of ruby

tzman89 avatar Mar 14 '18 08:03 tzman89

I am using slanger with ruby 2.3.1 install via rbenv It works perfectly with Peatio 1.5.0

myujang avatar Mar 26 '18 06:03 myujang

@myujang I installed it on remote server with ruby 2.3.1 and it's running but didn't test if it works on peatio. Do you use the same id for PUSHER_APP: and PUSHER_CLIENT_KEY: or slanger have an option to give you pusher app id

tzman89 avatar Mar 26 '18 08:03 tzman89

@tzman89 Yes. When i debug. its all goes to slanger. you can put any secret key and id in slanger.

myujang avatar Mar 27 '18 03:03 myujang

@tzman89 You can put any value to PUSHER_APP. I for example put IP address.

yivo avatar Apr 04 '18 08:04 yivo

If you are using slanger, of course.

yivo avatar Apr 04 '18 08:04 yivo

@yivo In which files do I need change the settings in order to replace the pusher to the slanger?

arruah avatar Apr 04 '18 08:04 arruah

More ideally, a standalone ActionCable can be used to build a replacement for slanger.

hardywu avatar Jun 26 '18 19:06 hardywu

Moved to #1360.

yivo avatar Jul 02 '18 10:07 yivo