home.social

#backoff — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #backoff, aggregated by home.social.

fetched live
  1. Realtime-чат без WebSocket: long-polling, гонки переподключения и дубли пушей

    Realtime в приложении есть, а WebSocket — нет: сервер отдаёт сообщения через long-polling. Разбираю на примере боевого iOS-сервиса, где такой realtime реально ломается — гонки при переподключении и токен поколения, full jitter в backoff, два независимых потока сообщений в одном ответе и как не задублировать локальные пуши на холодном старте.

    habr.com/ru/articles/1049708/

    #iOS #Swift #longpolling #Comet #realtime #backoff #concurrency

  2. A quotation from Baltasar Gracian

    A fountain gets muddy with but little stirring up, and does not get clear by our meddling with it but by our leaving it alone. The best remedy for disturbances is to let them run their course, for so they quiet down.
     
    [Una fuente con poca inquietud se enturbia, ni se volverá a serenar procurándolo, sino dejándola. No hay mejor remedio de los desconciertos que dejarlos correr, que así caen de sí propios.]

    Baltasar Gracián y Morales (1601-1658) Spanish Jesuit priest, writer, philosopher
    The Art of Worldly Wisdom [Oráculo Manual y Arte de Prudencia], § 138 (1647) [tr. Jacobs (1892)]

    More about this quote: wist.info/gracian-y-morales-ba…

    #quote #quotes #quotation #qotd #acceptance #backoff #calming #calmingdown #disorder #disturbance #leavealone #naturalcourse #stirring #turmoil

  3. If you golf & haven't seen 'Country Club Adjacent' roast golfers on the tee non-stop, you're in for a real treat. 😜

    "Oh boy. We've got DJ Needs-a-Salad." 😂

    OUR MOST ILLEGAL BACK OFF CHALLENGE!
    youtube.com/watch?v=44cc4ZmD-6

    #countryclubadjacent #comedy #humor #golf #roasts #backoff

  4. CW: not screenreader friendly, code

    Instead of writing complicated try-catch constructs to #retry things, using auto-retrying function #decorators certainly changed my life to the better.

    This is using #SQLAlchemy & the #backoff library pypi.org/project/backoff/ to retry generating a unique token, in the rare event that we chose a token that’s already in the database. On an IntegrityError, the function will “call itself” again.

    (Event hooks & exponential backoff are available too.)

    #Python #SQLModel