Join Nostr
2025-07-30 19:52:33 GMT

VitorPamplona on Nostr: My next challenge is to deal with OkHttp's websocket write queues. Regardless of how ...

My next challenge is to deal with OkHttp's websocket write queues. Regardless of how many threads I give to OkHttp, the write queue to send Nostr requests to the relay is too slow. Which means that Amethyst updates the REQ before the REQ even gets to be sent out to the relay. And when that happens the relay gets two (or more) REQs of the same subscription.

I need a design that I can delete or replace things from the OkHttp send queue. Or even better, the subscription should only be assembled when the socket is actually sending the message, so it gets the most up-to-date filters.

Living the big app dream 🥳