Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
JsonBoa29921yHow are you approaching the real-time exactly-once bidirectional pub/sub problem?
Asking for a friend.
Who had to build something like it for shipping capacity auctions.
Like, the bid and asking prices for each symbol must be collected then published instantly to thousands of subscribers, and you can't show the same quote twice or all hell breaks loose. Then someone somewhere makes a new bid and the problem begins anew, but in reverse.
The folks at Twitter gave up on near-instant because it requires an overpowered n-to-n Kafka pub/sub, they simply made so that your tweets require several seconds to reach the first few thousand subscribers, and hours to reach the world.
The moneybags at Bloomberg built their own fucking dedicated multi-tier network infrastructure that costs more than the GDP of Ireland.
Very curious in how you are approaching this problem. -
@JsonBoa ? It's just a websocket, after OAuth it all runs in the client directly, so the browser is doing all the 'work'
Brokers typically minimize the payload by sending only what changes, however client side this is a bit tricky because you basically have to update only what isn't undefined. Probably there is a way to do this super efficiently but with react / redux there is for sure small performance loss -
✅ Tradier complete
Can't do TradeStation because it requires further confirmation from their side for API access
done for the day -
JsonBoa29921y@fullstackcircus dude, websockets might be quite the bottleneck your users start trading during a feeding frenzy - i.e. the entire GME debacle. Because it might get inconsistencies.
But I guess the retail brokers will have a auto-cancel feature when things start getting race-condition-ny.
99.999% of the time, though? you probably fine. -
JsonBoa29921y@fullstackcircus the exchanges can, but can your customer support? the problem here is a jerk in nowhereville complaining that he clicked "buy" and the trade didn't want through because by the time it got to the exchange the price has moved.
Quite the headache for B2B, and a migraine in B2C.
Related Rants
-
localjoost51Last year I built the platform 'Tindex'. It was an index of Tinder profiles so people could search by name, ge...
-
woodworks34There was a problem with a server we were staging on, and I was providing DevOps help remote. As a joke I sa...
-
allankibet17Kenyans lost these great devs in a terror attack. A moment of silence
attempting to write 3 broker integrations for my fintech product today: TD Ameritrade, Tradier, and TradeStation...
starting with just the most basic possible: live bid / ask price, then will go from there...
will report back
will likely fail
🤡
rant
rip
🤡
broker
saas
fintech