{"id":2819,"date":"2025-06-12T12:04:21","date_gmt":"2025-06-12T12:04:21","guid":{"rendered":"https:\/\/adjoe.io\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/"},"modified":"2026-11-14T15:58:33","modified_gmt":"2026-11-14T15:58:33","slug":"resilient-kafka-producer-on-spot-instances-with-sqs-failover","status":"publish","type":"engineer_blog","link":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/","title":{"rendered":"Kafka Producer on Spot Instances with SQS Failover"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Running Kafka on AWS Spot Instances can be a cost-effective solution, but it introduces a critical challenge: <strong>spot instance interruptions<\/strong>. These interruptions can disrupt message publishing, potentially causing data loss or delayed processing.<\/p><p class=\"wp-block-paragraph\">At <a href=\"https:\/\/adjoe.io\/solutions\/advertise-your-app\/playtime\/\" target=\"_blank\" rel=\"noreferrer noopener\">adjoe<\/a>, we implemented a dual-path messaging strategy using AWS SQS as a fallback for failed Kafka messages, on top of our framework gosoline. This is a framework for creating <em>Go<\/em> applications developed by our sister company, JustTrack.<\/p><p class=\"wp-block-paragraph\">At the moment, the feature is on our <a href=\"https:\/\/github.com\/justtrackio\/gosoline\" target=\"_blank\" rel=\"noreferrer noopener\">downstream repository<\/a>. In this article, we\u2019ll walk you through how we architected this mechanism, focusing on our producer logic and retry handling.\u00a0<\/p><h2 class=\"wp-block-heading\">Why AWS Spot Instances and why SQS?<\/h2><p class=\"wp-block-paragraph\">Our <a href=\"https:\/\/adjoe.io\/teams_cat\/programmatic-supply\/\" target=\"_blank\" rel=\"noreferrer noopener\">Programmatic Supply tech team<\/a> handles tens of millions of requests daily, an inherent challenge in mobile advertising. To meet this demand efficiently<em> (while reducing costs)<\/em>, we rely on spot instances.\u00a0<\/p><p class=\"wp-block-paragraph\">This setup gives us the flexibility to dynamically scale our infrastructure, and support adjoe\u2019s core products: <em>Playtime rewarded ads<\/em> and <a href=\"https:\/\/adjoe.io\/blog\/programmatic-bidding-for-mobile-in-app-advertising\/\" target=\"_blank\" rel=\"noreferrer noopener\">programmatic bidding<\/a> solutions. For this, our <strong>architecture <\/strong>needs to be highly adaptive for the mobile advertising ecosystem we operate in.<\/p><h3 class=\"wp-block-heading\">Challenge<\/h3><p class=\"wp-block-paragraph\"><a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/running-apache-kafka-on-spot-instances\/\" target=\"_blank\" rel=\"noreferrer noopener\">Apache Kafka on spot instances<\/a> provides cost savings compared to On-Demand Instances, but they can be terminated with minimal warning. This introduces reliability challenges for Apache Kafka, which powers our whole event streaming platform and parts of our data pipeline.<\/p><p class=\"wp-block-paragraph\">Kafka, designed for high throughput and availability, is <strong>sensitive to instance terminations<\/strong>. If a producer is running on a spot instance that gets interrupted, messages may fail to publish. It leads to potential data loss, undermining data pipelines and our ability to extract value.<\/p><p class=\"wp-block-paragraph\">Additionally, when a new node joins the cluster, it needs to be synced. This operation causes high network bandwidth usage, which in turn leads to higher response latencies between our <a href=\"https:\/\/docs.adjoe.io\/rewarded-solutions\/integration\/playtime-sdk-for-android\" target=\"_blank\" rel=\"noreferrer noopener\">adjoe SDK<\/a> and the backend.\u00a0<\/p><p class=\"wp-block-paragraph\">Such latency spikes have triggered alarms and resulted in some data loss in user event streaming. As a consequence, these seemingly minor pod interruptions became far from insignificant for our operations.<\/p><h3 class=\"wp-block-heading\">Solution<\/h3><p class=\"wp-block-paragraph\">To mitigate this, we integrated <a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/event-driven-architecture\/\" target=\"_blank\" rel=\"noreferrer noopener\">AWS SQS<\/a> as a fallback mechanism. When the Kafka producer fails to send a message due to instance interruptions, it writes the message to an SQS queue.\u00a0<\/p><p class=\"wp-block-paragraph\">This SQS queue acts as a temporary buffer, holding failed messages until the Kafka cluster is back online and ready to process them. Let\u2019s dive into the implementation steps.\u00a0<\/p><h2 class=\"wp-block-heading\">Implementation Overview\u00a0<\/h2><p class=\"wp-block-paragraph\">Our implementation follows a modular design, structured around the following components:\u00a0<\/p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-rt.googleusercontent.com\/docsz\/AD_4nXeoODJBfeswD_bOTKsNUKXV8gmAewKEalDusF8hq-2qnVxVMcRhsKSes6-BuSFQAJCfGx2y54Sil9GQE2QaJQRvxbwxXI0itxzatwQtkDtQpidyRyADhWFxRJy_xYYaCBPkyjYZ?key=j__XoZypcOUACwuj9aBFMQ\" alt=\"Apache Kafka Producer on Spot Instances - with SQS Failover\n\nBuild Apache Kafka Producer on AWS Spot Instances. Use AWS SQS as a fallback for failed Kafka messages.\"><\/figure><p class=\"wp-block-paragraph\"><strong>Primary Output \u2013 Kafka<\/strong>: The producer initially attempts to publish messages directly to Kafka.<\/p><p class=\"wp-block-paragraph\"><strong>Fallback SQS<\/strong>: If the primary output fails, the producer sends and redirects the message to an SQS queue.<\/p><p class=\"wp-block-paragraph\"><strong>Retry Daemon<\/strong>: The Kafka producer config includes a retry daemon that periodically checks the SQS message queues and attempts to reprocess messages to Kafka when it becomes available again.<\/p><p class=\"wp-block-paragraph\"><strong>Configuration-Driven<\/strong>: All behavior, including retry logic, output targets, and encoding settings, is configurable, allowing for easy adaptation to different environments.<\/p>\n\n\t<div class=\"code-block code-block--acf code-block--has-language\" data-block=\"code-block\">\n\t\t\t\t\t<div class=\"code-block__header\">\n\t\t\t\t<span class=\"code-block__language\">YAML<\/span>\n\t\t\t<\/div>\n\t\t\t\t<pre class=\"code-block__pre\"><code class=\"code-block__code language-yaml\">stream:\n  output:\n    example_output:\n      connection: default\n      topic: example-kafka-topic\n      type: kafka\n      batch_size: 10\n      idle_timeout: 1s\n      write_timeout: 1s\n      balancer: default\n  producer:\n    example_producer:\n      output: example_output\n      encoding: kafka\/proto-wire-format\n      retry:\n        enabled: true\n        after: 2m\n        max_attempts: 5\n        queue_id: example-sqs-queue-name\n        max_number_of_messages: 10\n        wait_time: 20\n        runner_count: 1\n        client_name: default\n        msg_body_encoding: base64\n        unmarshaller: msg_base64<\/code><\/pre>\n\t<\/div>\n<h2 class=\"wp-block-heading\">Configuration Details<\/h2><p class=\"wp-block-paragraph\">Our Kafka Producer uses configurable settings to define its behavior across various scenarios:<\/p><h3 class=\"wp-block-heading\">Direct Publishing to Kafka\u00a0<\/h3><p class=\"wp-block-paragraph\">Under normal conditions, the producer\u2019s primary objective is to publish messages directly to Kafka. This is our default and most efficient path, optimized for low-latency processing and high throughput. Messages are sent to the configured topic, and successful delivery is acknowledged by the Kafka broker.<\/p><h3 class=\"wp-block-heading\">Fallback to SQS\u00a0<\/h3><p class=\"wp-block-paragraph\">This is where our resilience mechanism kicks in. If the direct publishing attempt to Kafka fails, whether due to a spot instance interruption, network partition, or any issue that makes Kafka unresponsive, the producer doesn\u2019t drop the message.\u00a0<\/p><p class=\"wp-block-paragraph\">Instead, it intelligently redirects the message to a designated <strong>AWS SQS queue<\/strong>.\u00a0This SQS queue acts as a durable, temporary buffer. It reliably holds these \u201cfailed\u201d messages, ensuring they are not lost during the Kafka cluster\u2019s unavailability.<\/p><p class=\"wp-block-paragraph\">Each message sent to SQS includes its original Kafka topic and any other necessary metadata to facilitate reprocessing.<\/p><h3 class=\"wp-block-heading\">Retry Daemon<\/h3><p class=\"wp-block-paragraph\">Central to our failover strategy is the <strong>Retry Daemon<\/strong>, a dedicated component that operates independently. This daemon is continuously polling the SQS queue for messages that were redirected during Kafka outages.\u00a0<\/p><p class=\"wp-block-paragraph\">The daemon picks up messages from SQS and attempts to re-publish them to their original Kafka topics, based on the retry parameters defined in the configuration.\u00a0<\/p><p class=\"wp-block-paragraph\">The mechanism effectively separates the retry logic from the primary producer flow. It ensures the producer can continue processing new incoming messages without blocking.\u00a0<\/p><p class=\"wp-block-paragraph\">The daemon contains robust retry logic, including <strong>configurable delays and maximum attempts<\/strong>. It helps prevent infinite loops and eventually routes messages to a Dead Letter Queue if persistent delivery fails, specified by the <strong><em>max_attempts<\/em><\/strong> settings in our configuration.<\/p><h2 class=\"wp-block-heading\">Benefits of Kafka in Spot Instances with SQS Failover<\/h2><p class=\"wp-block-paragraph\">This architecture provides several key benefits:<\/p><ul class=\"wp-block-list\"><li><strong>Cost Efficiency<\/strong>: Spot instances reduce infrastructure costs, while SQS provides durable message storage during instance interruptions. As mentioned in our earlier blogs, <a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/running-apache-kafka-on-spot-instances\/\" target=\"_blank\" rel=\"noreferrer noopener\">spot instances pricing<\/a> is 90% lower than the demand price, leading to AWS cost savings.\u00a0<\/li><\/ul><ul class=\"wp-block-list\"><li><strong>Scalability<\/strong>: The retry daemon can handle bursts of messages when Kafka becomes available again, preventing message overload. Upon accommodating our new customers, we observed a potential<strong> threefold increase in traffic <\/strong>due to expanded <a href=\"https:\/\/adjoe.io\/blog\/programmatic-advertising-kpis\/\" target=\"_blank\" rel=\"noreferrer noopener\">programmatic advertising<\/a> solutions.<\/li><\/ul><ul class=\"wp-block-list\"><li><strong>Resilience<\/strong>: Messages are never lost; they are safely stored in SQS if Kafka is unreachable.<\/li><\/ul><ul class=\"wp-block-list\"><li><strong>Flexibility<\/strong>: The architecture is fully configurable, allowing for quick adaptation to changing requirements or new output mechanisms.<\/li><\/ul><h2 class=\"wp-block-heading\">Challenges &amp; Considerations<\/h2><p class=\"wp-block-paragraph\">While the implementation is robust, it adds some challenges:<\/p><h3 class=\"wp-block-heading\">Message Ordering<\/h3><p class=\"wp-block-paragraph\">With messages potentially flowing through two distinct paths, direct to Kafka or via SQS as a fallback, maintaining strict global message order becomes a challenge.\u00a0<\/p><p class=\"wp-block-paragraph\">It\u2019s not feasible to perfectly sync two asynchronous streaming systems to guarantee exact ordering. For our current use cases, eventual consistency was acceptable.\u00a0<\/p><p class=\"wp-block-paragraph\">For example, if you\u2019re processing financial transactions or state changes, out-of-order messages could lead to incorrect data. This trade-off between strict ordering and simplified fallback was a key decision point in our design.<\/p><h3 class=\"wp-block-heading\">Idempotency<\/h3><p class=\"wp-block-paragraph\">Ensuring that messages are not processed multiple times during retries helps maintain data consistency. We address this via unique message IDs processed idempotently<strong> <\/strong>by consumers.\u00a0<\/p><p class=\"wp-block-paragraph\">Since a message might be successfully published to Kafka after being sent to SQS, and then reprocessed from SQS, consumers could receive duplicates.\u00a0<\/p><p class=\"wp-block-paragraph\">Our approach to idempotency involves embedding a unique message ID within the message payload. Downstream consumers are designed to check this ID and discard any messages they have already processed.\u00a0<\/p><p class=\"wp-block-paragraph\">It involves using a dedicated key-value store <em>(like Redis)<\/em> to track processed message IDs. Such a mechanism prevents side effects like double-counting metrics or creating duplicate records, enhancing data consistency.<\/p><h3 class=\"wp-block-heading\">Latency<\/h3><p class=\"wp-block-paragraph\">SQS introduces additional latency, particularly when Kafka is temporarily unavailable. The added delay is within acceptable bounds for our current SLOs, and we actively monitor queue depths.<\/p><p class=\"wp-block-paragraph\">This is an inherent characteristic of using an asynchronous queue for failover. While Kafka offers <strong>near real-time processing<\/strong>, the SQS fallback introduces a delay for messages that go through this path.\u00a0<\/p><p class=\"wp-block-paragraph\">This latency needs to be accounted for in message processing. We manage this by <strong>monitoring the SQS queue depth<\/strong> and the time messages spend in the queue.\u00a0<\/p><p class=\"wp-block-paragraph\">That is why we also have proper<strong> <\/strong>alerts<strong> <\/strong>configured for dead letter queues. For critical real-time data, we might consider alternative failover strategies or prioritize restoring Kafka quickly. But for many of our use cases, the brief increased latency during an outage is a small price to pay for guaranteed delivery.<\/p><h3 class=\"wp-block-heading\">Error Handling<\/h3><p class=\"wp-block-paragraph\">Comprehensive error handling is essential to prevent infinite retry loops or data loss. We plan to implement a circuit breaker to prevent overwhelming SQS during prolonged Kafka outages or severe backlogs.<\/p><h2 class=\"wp-block-heading\">Reliable Kafka, Even on Spot Instances<\/h2><p class=\"wp-block-paragraph\">Using Apache Kafka on spot instances can be risky due to potential interruptions, but by integrating SQS as a fallback mechanism, we can mitigate data loss and maintain message delivery consistency. This solution significantly enhanced the consistency and reliability of <a href=\"https:\/\/adjoe.io\/solutions\/monetize-your-app\/adjoe-ads-bidder\/\" target=\"_blank\" rel=\"noreferrer noopener\">adjoe Ads<\/a>, our programmatic advertising solution, while ensuring cost-effectiveness. We\u2019re able to serve millions of customers across the globe.<\/p><p class=\"wp-block-paragraph\">Our implementation uses a configurable, modular design that abstracts retry logic into a dedicated daemon, allowing for seamless fallback and recovery. This approach enables us to continue benefiting from <a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/cloud-cost-optimization\/\" target=\"_blank\" rel=\"noreferrer noopener\">cost-effective spot instances<\/a> without sacrificing data reliability.<br><br>If your <a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/cloud-engineering-data-science-collaboration\/\" target=\"_blank\" rel=\"noreferrer noopener\">infrastructure<\/a> faces similar resilience challenges, we strongly encourage considering such a failover strategy. It proves invaluable for safeguarding your data pipeline and maintaining operational continuity.\u00a0<\/p><p class=\"wp-block-paragraph\">For those building Go applications, our gosoline framework provides a robust foundation to implement these resilient patterns. Feel free to explore our <a href=\"https:\/\/github.com\/justtrackio\/gosoline\" target=\"_blank\" rel=\"noreferrer noopener\">public repository<\/a> for more insights.<\/p><h2 class=\"wp-block-heading\" style=\"font-size:32px\">Build products that move markets<\/h2><section class=\"l-section l-section--jobs-include is-light l-pt-lg l-pb-lg\" data-block=\"jobs-include\">\n\t<div class=\"l-wrapper\">\n\t\t<div class=\"jobs-include\">\n\t\t\t\n\t\t\t<div class=\"jobs-include__table-wrap\" tabindex=\"0\">\n\t\t\t\t<table id=\"jobs-include-table-1\" class=\"jobs-include__table\">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th scope=\"col\">Role<\/th>\n\t\t\t\t\t\t\t<th scope=\"col\">Team<\/th>\n\t\t\t\t\t\t\t<th scope=\"col\">Location<\/th>\n\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t<\/thead>\n\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<th scope=\"row\" data-label=\"Role\">\n\t\t\t\t\t\t\t\t\t<a class=\"jobs-include__role\" href=\"https:\/\/adjoe.io\/ko\/careers\/open-positions\/b26b0a1d-076f-4b26-82d5-90c7a9377c64\/\">\n\t\t\t\t\t\t\t\t\t\tProduct Analyst (f\/m\/d)\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/th>\n\t\t\t\t\t\t\t\t<td data-label=\"Team\">\n\t\t\t\t\t\t\t\t\tProgrammatic Solutions\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t\t<td data-label=\"Location\">\n\t\t\t\t\t\t\t\t\tHamburg\t\t\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t\t\t\t\t\t<\/tbody>\n\t\t\t\t<\/table>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>Running Kafka on AWS Spot Instances can be a cost-effective solution, but it introduces a critical challenge: spot instance interruptions&#8230;.<\/p>\n","protected":false},"author":3,"featured_media":2960,"template":"","engineer_blog_category":[75],"class_list":["post-2819","engineer_blog","type-engineer_blog","status-publish","has-post-thumbnail","hentry","engineer_blog_category-infrastructure"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Kafka Producer on Spot Instances with SQS Failover - adjoe | Making every interaction the start of lasting value<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Kafka Producer on Spot Instances with SQS Failover - adjoe | Making every interaction the start of lasting value\" \/>\n<meta property=\"og:description\" content=\"Running Kafka on AWS Spot Instances can be a cost-effective solution, but it introduces a critical challenge: spot instance interruptions....\" \/>\n<meta property=\"og:url\" content=\"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/\" \/>\n<meta property=\"og:site_name\" content=\"adjoe | Making every interaction the start of lasting value\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-14T15:58:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/06\/2026.06.11-Building-a-Resilient-Kafka-Producer-on-Spot-Instances-with-SQS-Failover.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\\\/\",\"name\":\"Kafka Producer on Spot Instances with SQS Failover - adjoe | Making every interaction the start of lasting value\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/2026.06.11-Building-a-Resilient-Kafka-Producer-on-Spot-Instances-with-SQS-Failover.webp\",\"datePublished\":\"2025-06-12T12:04:21+00:00\",\"dateModified\":\"2026-11-14T15:58:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\\\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\\\/#primaryimage\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/2026.06.11-Building-a-Resilient-Kafka-Producer-on-Spot-Instances-with-SQS-Failover.webp\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/2026.06.11-Building-a-Resilient-Kafka-Producer-on-Spot-Instances-with-SQS-Failover.webp\",\"width\":1920,\"height\":1080,\"caption\":\"Resilient Kafka on AWS Spot Instances with SQS Failover\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kafka Producer on Spot Instances with SQS Failover\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#website\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"description\":\"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.\",\"publisher\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#organization\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"width\":1200,\"height\":630,\"caption\":\"adjoe | Making every interaction the start of lasting value\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/people\\\/Adjoe\\\/100076450974671\\\/\",\"https:\\\/\\\/www.instagram.com\\\/adjoe.io\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/adjoe\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Kafka Producer on Spot Instances with SQS Failover - adjoe | Making every interaction the start of lasting value","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/","og_locale":"ko_KR","og_type":"article","og_title":"Kafka Producer on Spot Instances with SQS Failover - adjoe | Making every interaction the start of lasting value","og_description":"Running Kafka on AWS Spot Instances can be a cost-effective solution, but it introduces a critical challenge: spot instance interruptions....","og_url":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/","og_site_name":"adjoe | Making every interaction the start of lasting value","article_publisher":"https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/","article_modified_time":"2026-11-14T15:58:33+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/06\/2026.06.11-Building-a-Resilient-Kafka-Producer-on-Spot-Instances-with-SQS-Failover.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/","url":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/","name":"Kafka Producer on Spot Instances with SQS Failover - adjoe | Making every interaction the start of lasting value","isPartOf":{"@id":"https:\/\/adjoe.io\/ko\/#website"},"primaryImageOfPage":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/#primaryimage"},"image":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/#primaryimage"},"thumbnailUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/06\/2026.06.11-Building-a-Resilient-Kafka-Producer-on-Spot-Instances-with-SQS-Failover.webp","datePublished":"2025-06-12T12:04:21+00:00","dateModified":"2026-11-14T15:58:33+00:00","breadcrumb":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/#primaryimage","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/06\/2026.06.11-Building-a-Resilient-Kafka-Producer-on-Spot-Instances-with-SQS-Failover.webp","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2025\/06\/2026.06.11-Building-a-Resilient-Kafka-Producer-on-Spot-Instances-with-SQS-Failover.webp","width":1920,"height":1080,"caption":"Resilient Kafka on AWS Spot Instances with SQS Failover"},{"@type":"BreadcrumbList","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/resilient-kafka-producer-on-spot-instances-with-sqs-failover\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/adjoe.io\/ko\/"},{"@type":"ListItem","position":2,"name":"Kafka Producer on Spot Instances with SQS Failover"}]},{"@type":"WebSite","@id":"https:\/\/adjoe.io\/ko\/#website","url":"https:\/\/adjoe.io\/ko\/","name":"adjoe | Making every interaction the start of lasting value","description":"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.","publisher":{"@id":"https:\/\/adjoe.io\/ko\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/adjoe.io\/ko\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/adjoe.io\/ko\/#organization","name":"adjoe | Making every interaction the start of lasting value","url":"https:\/\/adjoe.io\/ko\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/adjoe.io\/ko\/#\/schema\/logo\/image\/","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","width":1200,"height":630,"caption":"adjoe | Making every interaction the start of lasting value"},"image":{"@id":"https:\/\/adjoe.io\/ko\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/","https:\/\/www.instagram.com\/adjoe.io\/","https:\/\/www.linkedin.com\/company\/adjoe"]}]}},"_links":{"self":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2819","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog"}],"about":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/types\/engineer_blog"}],"author":[{"embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":4,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2819\/revisions"}],"predecessor-version":[{"id":3729,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2819\/revisions\/3729"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/media\/2960"}],"wp:attachment":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/media?parent=2819"}],"wp:term":[{"taxonomy":"engineer_blog_category","embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog_category?post=2819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}