Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Elly, nasty enby :heart_pan: (elizafox@mst3k.interlinked.me)'s status on Thursday, 28-Sep-2017 23:06:53 EDT Elly, nasty enby :heart_pan: Elly, nasty enby :heart_pan:

    Trying to decide on a good ratelimiting algorithm for mastodon API requests

    Basically mastodon gives you 300 requests for a 300 second time slot. I could just sleep for a second (sleep is free here, it's async) but that seems incredibly wasteful and not suitable if you do a lot of API requests in a burst.

    I could also throttle like Mastodon does. Give you a bucket of "tokens", refilled every 300 seconds. But if you go over, you have to sleep until the timeslot resets... hrm.

    In conversation Thursday, 28-Sep-2017 23:06:53 EDT from mst3k.interlinked.me permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.