4/ * inject the work into asynchronous thing A, and also asynchronous thing B. * leave the work in the linked list, but mark it as "injected into A and injected into B". * keep scanning the list, looking for a thing that has those two flags set PLUS flags "A done" and "B done"
-
-
15/ also, since I might have to reinject into the db, I need to carry along a data structure of all the info that I might need to inject, which means rearchitecting things. Then I have to clean it up at the end!
Show this thread -
16/ Also, bc I'm doing sharding, I can no longer do a simple cleanup of the original data - shard 0 might write to db OK, but shard 3 might take 4 retries, so cleanup is VERY TRICKY.
Show this thread -
17/ Also, some cleanup can't be done automatically. Sometimes we do a DB query, and get a char * to data ... but that lives inside a short lived handle, so we can't clean up the handle ourselves. Have to hide it behind a void * and give it back to app, which can call cleanup
Show this thread -
18/ But note that I am not bitching - this is actually the most fun I've had coding in 2-3 years! onward!
Show this thread -
19/ tangentially, sometimes I wonder "am I really bringing that much value?" when I'm changing the background color of a webpage. ...because any 14 year old fresh out of a coding bootcamp could do this. ...but when I'm spinning up threads, working state machines, etc: yeah
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.