I believe both SERIALIZABLE and REPEATABLE READ isolation levels would raise an error for this example.

And I looked this up: Postgres won't retry the transaction for you either. Though ultimately I think this a good default behavior.

It should have been not abbreviated this whole time.

Pff OK if that's the argument you want to go with, I don't think we need to continue.

[-] tatterdemalion@programming.dev 1 points 2 years ago

This grill is not a hoooooome.

[-] tatterdemalion@programming.dev 1 points 2 years ago

Not exactly. I'm talking specifically about being able to call axum::serve with non-Send futures.

[-] tatterdemalion@programming.dev 1 points 2 years ago* (last edited 2 years ago)

I'm not sure what tokio (or axum) can do to avoid the trait bounds. Would it makes sense to provide a "share nothing" runtime implementation that can be injected at startup? I wonder how the intermediate layers (e.g. axum) would indicate that futures are usable by a more generic runtime which may or may not need Send + 'static.

Without some way to write generic code for either runtime, the whole tokio ecosystem would end up bifurcated by this choice of runtime.

[-] tatterdemalion@programming.dev 1 points 2 years ago

Rate-limiting could also be applied at the federation level, but I'm less sure of what the implementation would look like. Requiring filters on a per-account basis might be resource intensive.

[-] tatterdemalion@programming.dev 1 points 2 years ago
  • The Descent
  • The VVitch
  • The Shining
  • The Texas Chainsaw Massacre (1974)
  • Audition
[-] tatterdemalion@programming.dev 1 points 2 years ago

Layton is baby puzzles. Or at least it made me feel that way after two levels.

[-] tatterdemalion@programming.dev 1 points 3 years ago

What sentence are you referring to?

[-] tatterdemalion@programming.dev 1 points 3 years ago

Yea that works too.

[-] tatterdemalion@programming.dev 1 points 3 years ago

Oh interesting I wasn't aware of the push behavior. That's cool, but perhaps over-eager at times?

view more: ‹ prev next ›

tatterdemalion

0 post score
0 comment score
joined 3 years ago