In some of my first discussions with Ched, he mentioned he'd really like to implement something like API websockets to which players could connect. Both so they can get real-time data & to drastically reduce the amount of requests.
It's just that the current focus is to build & standardize API v2 and refactor some of the codebase, but I'm sure this is a topic we'll revisit when I get to the point of request optimization.
Of course, any ideas & suggestions regarding that topic are more than welcome, so I appreciate bringing this topic up!
Question @Splent: Feed/firehose from API
-
Thread created on 19:34:00 - 05/11/24 (1 month ago)|Last replied 23:52:44 - 07/11/24 (1 month ago)
So, it occurred to me during one of my dubiously delightful debauched and daring dives into a disastrously drunken episode, that Torn may or may not have a message queue at it's core?
If this is the case? Can you spaff said queue out onto a RabbitMQ or MQTT feed at all, hell... even a HTTP/2 pipeline with JSON RPC?
~ P
Support my suggestions: Faction API Keys
-
-
Posted on 00:51:28 - 06/11/24 (1 month ago)Post link copied to clipboard Copy post link
Extraordinarily unlikely. I mean, the data fed to the API isn't really by a queue to my knowledge, and they are used to communicate between some microservices, not all.
Plus, doing so would bypass all authentication, rate limits, logging, user control etc. Would it be possible to add an authentication mechanism of some kind to achieve this? Yes. Would it be worthwhile? No.
There's a reason APIs are the standard and not shared messages queues for loosely coupled and detached services.
And I may have asked for this many times, over many years, and been given a straight no.
Co-owner and Developer of TornPal
TornPal API - Extract market & bazaar data with your own tools/sheets
-
-
Posted on 01:13:25 - 06/11/24 (1 month ago)Post link copied to clipboard Copy post link
Had they invested in real-time tech years ago, they'd probably have saved money by now given how much effort they put into scaling the game.
With the addition of web sockets in the new item market, it does seem like they're finally changing course on the "polling-everywhere" approach. If that implementation goes well, who knows, they might increasingly see value in adding real-time streams elsewhere and, just maybe, eventually the API.
Currently, yeah, probably a hard no.
-
-
Posted on 09:12:37 - 06/11/24 (1 month ago)Post link copied to clipboard Copy post link
In some of my first discussions with Ched, he mentioned he'd really like to implement something like API websockets to which players could connect. Both so they can get real-time data & to drastically reduce the amount of requests.
It's just that the current focus is to build & standardize API v2 and refactor some of the codebase, but I'm sure this is a topic we'll revisit when I get to the point of request optimization.
Of course, any ideas & suggestions regarding that topic are more than welcome, so I appreciate bringing this topic up! -
-
Posted on 23:52:44 - 07/11/24 (1 month ago)Post link copied to clipboard Copy post link
Without a view on the architecture, I couldn't possibly begin to make any suggestions... All previous experience (read: PTSD) of this kind of thing has been horrific and required much therapy afterwards.
~ P
Support my suggestions: Faction API Keys
-