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.
- Host: GitHub
- URL: https://github.com/rolemodel/idempotent_post
- Owner: RoleModel
- Created: 2015-05-26T15:07:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-26T15:36:26.000Z (about 11 years ago)
- Last Synced: 2025-05-25T08:02:58.956Z (about 1 year ago)
- Language: Ruby
- Size: 113 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.