---
title: "Discussion on \"How to Prevent an API from Being Called Twice on Button Click\" | Hashnode"
description: "Discussion on \"How to Prevent an API from Being Called Twice on Button Click\". When users click a button quickly—either intentionally or accidentally—it can trigger the same API multiple times. This can lead to:\n\nDuplicate submissions\n\nExtra load on the server\n\nIncorrect processing\n\nBad user experience\n\n\nTo avoid double API cal..."
url: "https://hashnode.com/posts/how-to-prevent-an-api-from-being-called-twice-on-button-click/692efaac4bba026c132b8477"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Prevent an API from Being Called Twice on Button Click](https://ecogrowthpath.hashnode.dev/how-to-prevent-an-api-from-being-called-twice-on-button-click?utm_source=hashnode&utm_medium=feed)

When users click a button quickly—either intentionally or accidentally—it can trigger the same API multiple times. This can lead to: Duplicate submissions Extra load on the server Incorrect processing Bad user experience To avoid double API cal...

Dec 2, 2025 · 2 min read · ecogrowthpath.hashnode.dev  
Read the article

-   [#system-design](https://hashnode.com/tag/system-design)
-   [#microservices](https://hashnode.com/tag/microservices)
-   [#apis](https://hashnode.com/tag/apis)
-   [#architecture-design](https://hashnode.com/tag/architecture-design)

## Written by

[Sanjay Singh](https://hashnode.com/@ecogrowthpath)

@ecogrowthpath · Pune, India

  
[View profile](https://hashnode.com/@ecogrowthpath)

Grow in your career and build wealth

Sanjay Kumar Singh is an Engineering Leader with 18+ years of experience in designing, building, and scaling enterprise-grade software solutions across banking, finance, payments, cloud technologies, and communication surveillance domains. With deep expertise in Java, Spring Boot, Microservices, AWS, Docker, Kubernetes, and system design, he has led multiple high-performing engineering teams and delivered mission-critical projects for global clients. Currently working as a Engineering Leader, Sanjay has spent the last decade driving technical strategy, modernizing legacy systems, managing large-scale migrations, and building cloud-native platforms. Known for his strong stakeholder management, decision-making ability, and leadership maturity, he has successfully guided teams through complex transformations—from on-prem to cloud, monolith to microservices, and manual deployments to fully automated CI/CD pipelines. He has extensive domain expertise in Core Banking (Flexcube), Finance, Payments, and Communication Surveillance, and has recently led multiple teams across agile programs involving data migration, voice-to-text solutions (Whisper), and intelligent search systems (Attivio). Sanjay is passionate about mentoring engineers, coaching future leaders, and helping professionals accelerate their careers. Through his brand EcoGrowthPath, he actively shares knowledge on technology, leadership, and personal finance, and also provides 1:1 mentoring and coaching. An author by passion, Sanjay has written a book on modern investing for Indian families, focused on financial freedom and smart investing across asset classes. He continues to write articles on technology, cloud-native architecture, and leadership thinking.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
