u/Batteredcode

Downstream rate limiting and concurrency

I'm new to temporal so bear with me - I'm trying to orchestrate a workflow which fans out into highly concurrent activities. Each of these activities invokes a 3rd party API which completes asynchronously. The activity calls the API, returns and then the workflow waits for a signal from an SQS queue that the job is done and the workflow continues.

The API has rate limits and concurrency limits, so I'm using a task queue to abide by rate limits, but I'm struggling to know how to solve the concurrency in a "temporal native" way. Right now I'm essentially keeping a ledger in RDS of invocations and when I get the async result I mark that given invocation as complete. Before I push to the task queue I check how many in progress invocations there are and if theres no capacity the workflow waits. This feels like I'm doing something wrong but as far as I can tell there's no clean way to do this native to temporal? The other thing I'd considered was whether I could have the activity wait for completion before pulling from the queue but I don't believe this is supported.

Any help appreciated!

reddit.com
u/Batteredcode — 7 days ago

Is this salvageable?

I've got what I think is a non stick carbon steel wok, it's not been that well looked after and if you look in the middle there's what looks like some of the black (non stick?) lining come away. I've read that if it is the non stick coming away then it it could be hazardous. Is there something I can do about this or is it beyond saving? Thanks

u/Batteredcode — 2 months ago

Using WiFi for single container

Is there a way to keep ethernet for the majority of my server and have WiFi for a single container? Basically it would be advantageous to use WiFi for my server (don't ask) but I've read that it can be difficult to make work and doesn't play well with bridging (disclaimer I don't really understand how the bridging stuff works).

Really I only need it for one specific container so I wondered if there's an easier way to do it, e.g. have ethernet handle all the networking for everything else and just pass a WiFi usb dongle / built in motherboard controller to the container?

Thanks

reddit.com
u/Batteredcode — 3 months ago