<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/mercari/best-of/2024" -->

---
title: Best Mercari Engineering posts of 2024 | daily.dev
description: The most upvoted Mercari Engineering posts of 2024, curated by the daily.dev community.
canonical: https://daily.dev/sources/mercari/best-of/2024
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/mercari/best-of/2024
og:type: website
og:site_name: daily.dev
og:title: Best Mercari Engineering posts of 2024 | daily.dev
og:description: The most upvoted Mercari Engineering posts of 2024, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Mercari Engineering — 2024

1. 1  
[](/posts/the-race-condition-in-multiple-db-transactions-and-the-solutions-84bdup7gp "The Race Condition in multiple DB transactions and the solutions")  
[![mercari's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cdde515cd83640748689d74c2d938fcf)](/sources/[source]/best-of/[year])  
6m read time • Dec 09, 2024  
### The Race Condition in multiple DB transactions and the solutions  
Race conditions can occur when using multiple database transactions in a single API request, especially in systems with high concurrency. This post outlines the challenges faced by the Merpay Balance team, who encountered race conditions while processing debt repayments. They evaluated solutions such as rollback, lock mechanisms, and merging transactions, ultimately choosing a lock mechanism to ensure only one request processes repayments at a time. The implementation details, including challenges and considerations, are shared for developers facing similar issues.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/3b3142a3febb9779358ce82b05e175b8?_a=AQAEuj9)  
74
2. 2  
[](/posts/designing-a-zero-downtime-migration-solution-with-strong-data-consistency-part-i-vxcy8zjvq "Designing a Zero Downtime Migration Solution with Strong Data Consistency – Part I")  
[![mercari's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cdde515cd83640748689d74c2d938fcf)](/sources/[source]/best-of/[year])  
7m read time • Nov 13, 2024  
### Designing a Zero Downtime Migration Solution with Strong Data Consistency – Part I  
This post provides an overview of a planned migration from a single-entry bookkeeping balance microservice (v1) to a double-entry bookkeeping balance microservice (v2) for a payment platform. The v2 service aims to reduce development costs and provide more organized and modern code. The post outlines the tech stack, current architecture, and different aspects of accounting, historical data, and bookkeeping services involved in the migration. The plan is spread across five parts, each covering different stages and elements of the migration.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/6bf45ec2685fdb3c966ab95ae82f7635?_a=AQAEuj9)  
31
3. 3  
[](/posts/designing-a-zero-downtime-migration-solution-with-strong-data-consistency-part-ii-dyn9vr6it "Designing a Zero Downtime Migration Solution with Strong Data Consistency – Part II")  
[![mercari's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cdde515cd83640748689d74c2d938fcf)](/sources/[source]/best-of/[year])  
10m read time • Nov 13, 2024  
### Designing a Zero Downtime Migration Solution with Strong Data Consistency – Part II  
This post delves into the challenges and proposed solutions for conducting a zero downtime migration while maintaining strong data consistency, performance, and reliability. It details the constraints faced, such as managing dependencies and ensuring no data loss, and introduces a robust roadmap and task list to guide the migration process. The approach includes learning best practices and prioritizing reversible actions for smooth transitions and rollback capabilities.

+1  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/6bf45ec2685fdb3c966ab95ae82f7635?_a=AQAEuj9)  
22
4. 4  
[](/posts/designing-a-zero-downtime-migration-solution-with-strong-data-consistency-part-v-6i1695mvu "Designing a Zero Downtime Migration Solution with Strong Data Consistency – Part V")  
[![mercari's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cdde515cd83640748689d74c2d938fcf)](/sources/[source]/best-of/[year])  
13m read time • Nov 13, 2024  
### Designing a Zero Downtime Migration Solution with Strong Data Consistency – Part V  
This post details the final steps in designing a zero downtime migration solution with a focus on architecture transitions, rollback plans, and the overall migration process. It covers development tasks, such as updating batch applications, accounting code processing, historical data handling, and modifying queries for BigQuery. The importance of monitoring mutation counts in Cloud Spanner is also addressed, along with a summary of key takeaways and future work.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/6bf45ec2685fdb3c966ab95ae82f7635?_a=AQAEuj9)  
22

[See all Mercari Engineering archives](/sources/mercari/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/mercari/best-of/2024#page","url":"https://daily.dev/sources/mercari/best-of/2024","name":"Best Mercari Engineering Posts of 2024","description":"The most upvoted Mercari Engineering posts of 2024, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/mercari/best-of/2024#items","numberOfItems":4,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/the-race-condition-in-multiple-db-transactions-and-the-solutions-84bdup7gp","name":"The Race Condition in multiple DB transactions and the solutions"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/designing-a-zero-downtime-migration-solution-with-strong-data-consistency-part-i-vxcy8zjvq","name":"Designing a Zero Downtime Migration Solution with Strong Data Consistency – Part I"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/designing-a-zero-downtime-migration-solution-with-strong-data-consistency-part-ii-dyn9vr6it","name":"Designing a Zero Downtime Migration Solution with Strong Data Consistency – Part II"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/designing-a-zero-downtime-migration-solution-with-strong-data-consistency-part-v-6i1695mvu","name":"Designing a Zero Downtime Migration Solution with Strong Data Consistency – Part V"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Mercari Engineering","item":"https://daily.dev/sources/mercari"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/mercari/best-of"},{"@type":"ListItem","position":5,"name":"2024"}]}]}
```

