An open API service indexing awesome lists of open source software.

https://github.com/rolemodel/idempotent_post

This intercepts requests at the rack level to recognize repeat posts and ignore them.This is extracted from one of our projects. The original had a dependency on Redis, but we will create one that is not.
https://github.com/rolemodel/idempotent_post

Last synced: 12 months ago
JSON representation

This intercepts requests at the rack level to recognize repeat posts and ignore them.This is extracted from one of our projects. The original had a dependency on Redis, but we will create one that is not.

Awesome Lists containing this project

README

          

# idempotent_post

Intercept duplicate posts at the rack level, so clicking a button twice or anything
that would cause a post happening more than once won't create the object twice.
The basic idea is that the response was either lost or not waited for long enough,
therefore cache the response and return it whenever a duplicate post is sent.

This was extracted from another project and was dependent on Redis.

The plan is to extract the dependency on Redis and turn this into a gem.