{"id":20388942,"url":"https://github.com/ashkan-maleki/go-r-api-idempotent","last_synced_at":"2026-04-11T11:35:54.126Z","repository":{"id":180886677,"uuid":"665837902","full_name":"ashkan-maleki/go-r-api-idempotent","owner":"ashkan-maleki","description":"Idempotent APIs: Avoid Duplicate Requests with Golang and Redis","archived":false,"fork":false,"pushed_at":"2023-07-16T06:32:27.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T23:43:48.983Z","etag":null,"topics":["docker","docker-compose","go","gofiber","golang","gorm","postgres","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashkan-maleki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-13T05:51:35.000Z","updated_at":"2023-07-16T06:34:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"fc2df971-7380-497f-ae45-381e7ac21223","html_url":"https://github.com/ashkan-maleki/go-r-api-idempotent","commit_stats":null,"previous_names":["ashkan-maleki/go-r-api-idempotent"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashkan-maleki/go-r-api-idempotent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashkan-maleki%2Fgo-r-api-idempotent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashkan-maleki%2Fgo-r-api-idempotent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashkan-maleki%2Fgo-r-api-idempotent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashkan-maleki%2Fgo-r-api-idempotent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashkan-maleki","download_url":"https://codeload.github.com/ashkan-maleki/go-r-api-idempotent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashkan-maleki%2Fgo-r-api-idempotent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31679480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","go","gofiber","golang","gorm","postgres","redis"],"created_at":"2024-11-15T03:14:11.897Z","updated_at":"2026-04-11T11:35:54.109Z","avatar_url":"https://github.com/ashkan-maleki.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Idempotent APIs: Avoid Duplicate Requests with Golang and Redis\n\n\n## Process:\n### First API Call\n1) Make a POST request to the \"shipping/order\" API endpoint.\n2) The specified \"order_id\" is checked in the Redis. If it exists, the object is sent to the user.\n3) if it doesn't exist, the service stores the new object in Postgres and Redis after 3 seconds (this 3 seconds delay is\n   deliberately used to demonstrate the process).\n\n### Second API Call\n1) Make a POST request to the \"shipping/order\" API endpoint with the same \"order_id\" parameter.\n2) The service responds and returns the object instantly.\n\n# Requirements\n1) Golang, 2) Redis, 3) Postgres, 4) Docker, 5) Docker Compose, 6) Make, 7) Gofiber\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashkan-maleki%2Fgo-r-api-idempotent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashkan-maleki%2Fgo-r-api-idempotent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashkan-maleki%2Fgo-r-api-idempotent/lists"}