BitShares Forum

Main => General Discussion => Topic started by: alt on April 16, 2015, 07:43:47 am

Title: push service for BTS community
Post by: alt on April 16, 2015, 07:43:47 am
I use push service from PubNub before,
but they charge me 100USD/month, because they say btsbots.com have several hundreds client.
Quote
Alt,

I am your Account Rep at PubNub. I received your request to downgrade to tier 1. The reason you had been upgraded to Tier 2 is because you have more than 100 Daily Active Devices using the PubNub service. It was actually over 400 in March.

In order to downgrade to Tier 1 you must get your usage below 100 devices. If you think there might be an error in the device count, please let us know. Otherwise, feel free to reach out if you have additional questions.

Thank you,
this is so expensive for me, so I develop my own push service based WAMP,  I have change all project to my own service now.
I feel it's more better than pubnub
and I am glad to provider this  service to community.
let me know if you want push service.

Title: Re: push service for BTS community
Post by: xeroc on April 16, 2015, 07:47:29 am
wow .. those numbers are fantastic!! Congratulations!
Title: Re: push service for BTS community
Post by: alt on April 16, 2015, 08:52:05 am
wow .. those numbers are fantastic!! Congratulations!
the number is not true, the number will +1 even if you only visit http://btsbots.com  for 1 second.
my English is poor, I am not family with the service terms, but I think the term is very unfair.
Title: Re: push service for BTS community
Post by: alt on April 16, 2015, 08:59:13 am
for BTS wallet, we only need to push public data to the service, and all client can get the date which they have subscribed from the service automatic.
these public data include: market order, market history, delegate info, etc
I think this will let the wallet more quickly, just like centre exchange.
Title: Re: push service for BTS community
Post by: alt on April 19, 2015, 09:52:08 am
I have write some demo for how to use push service ,
push service is a data gateway, every project can share the push data, and the rpc service.

1. http://pusher.btsbots.com/height.html
this is a simple demo for how to push blockchain height to gateway.
and client can subscribe the topic "height", update automatic.
client can call rpc service "btsbots.get_last()" to get last data.

2. http://pusher.btsbots.com/order_book.html
this is a sample for more complex data share, update order book of market CNY/BTS

here is the source for how to use the API  to publish topic, subscribe topic, register a rpc service, call a rpc service.
https://github.com/bitsuperlab/operation_tools/tree/master/pusher

the data gateway based crossbar, and here is some introduce
http://crossbar.io/docs/Application-Scenarios/

almost support all language and os
http://wamp.ws/implementations/
Title: Re: push service for BTS community
Post by: alt on April 19, 2015, 09:58:30 am
for more example, http://btsbots.com are totally based this push service.
the source code is here: https://github.com/pch957/btsbots_exchange
Title: Re: push service for BTS community
Post by: lastagile on April 19, 2015, 10:55:36 am
 +5% +5% +5% +5% +5%
Title: Re: push service for BTS community
Post by: alt on April 19, 2015, 11:01:04 am
for more example, http://btsbots.com are totally based this push service.
the source code is here: https://github.com/pch957/btsbots_exchange

U open source the btsbots!!!
It's just frontend, backend is not open source.

来自我的 HUAWEI P7-L00 上的 Tapatalk

Title: Re: push service for BTS community
Post by: lastagile on April 19, 2015, 02:01:01 pm
I just tried, very easy to use.
Title: Re: push service for BTS community
Post by: jsidhu on April 19, 2015, 03:58:09 pm
PubNub is great.. im using them here for my auction website http://devcoinauctions.com

I used PHP backend (push) with JS front-end. Cuts ajax calls down 100%. Im using free service though.

I would be happy to switch over to yours! It seems this would allow people to not have to run their own nodes to use services like I did with the bitshares ticker @ cryptosmith.info... I have to pull data via the RPC to get open/close price information.. but rather would subscribe to the data via the push bot...

I can also think of another use-case... social login and single-sign on? Check out getclef.com... we can do something like that by sending push notifications that user has logged off, or loggin them in automatically based on their bitshares ID if they login using bitshares login.

Now if some delegates started to become push bot servers we can expand it to make a decentralized service that allows to pull information, so even if one goes down others still available (in the cloud).
Title: Re: push service for BTS community
Post by: alt on April 20, 2015, 01:02:44 am
great! scan QR with bitshares phone wallet can be a very great service!
I think we should start this right now.

and if you want to use the push service, give me a prefix of topic name, like "bts.cryptosmtih",
I'll send you the user name and password, so you have auth to publish data to topic like "bts.cryptosmith.*", and register RPC service.
client can get all topic's last value, but if you want to get the history list of a topic,tell me the topic name, I need to add it.

If you'll publish some public data maybe anybody else can use, please give me a description, I'll add it to a public data document.
if you need some data you don't want to publish yourself, tell me, I'll add it to the data requirement, maybe anybody else can do it for you.

that's what we should do, share our data, and work together. Thanks!

BTW. http://devcoinauctions.com seems can't visit now.

PubNub is great.. im using them here for my auction website http://devcoinauctions.com

I used PHP backend (push) with JS front-end. Cuts ajax calls down 100%. Im using free service though.

I would be happy to switch over to yours! It seems this would allow people to not have to run their own nodes to use services like I did with the bitshares ticker @ cryptosmith.info... I have to pull data via the RPC to get open/close price information.. but rather would subscribe to the data via the push bot...

I can also think of another use-case... social login and single-sign on? Check out getclef.com... we can do something like that by sending push notifications that user has logged off, or loggin them in automatically based on their bitshares ID if they login using bitshares login.

Now if some delegates started to become push bot servers we can expand it to make a decentralized service that allows to pull information, so even if one goes down others still available (in the cloud).
Title: Re: push service for BTS community
Post by: jsidhu on April 20, 2015, 01:46:07 am
Try it again alt had to reset server.. I want to rebrand site for bitshares.. Already have bitshares payment gateway installed
Title: Re: push service for BTS community
Post by: alt on April 20, 2015, 02:07:46 am
Try it again alt had to reset server.. I want to rebrand site for bitshares.. Already have bitshares payment gateway installed
great