Skip to content

Chapter 8: Data Redundancy and Replication - #17

Merged
KhanShaheb34 merged 4 commits into
mainfrom
ch/data-replication
May 31, 2026
Merged

KhanShaheb34 merged 4 commits into
mainfrom
ch/data-replication

Conversation

@KhanShaheb34

@KhanShaheb34 KhanShaheb34 commented May 31, 2026 •

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Documentation
    • Added a Bengali chapter on data replication (redundancy, replication strategies and topologies), with method and redundancy subpages and illustrative images.
    • Revised an existing chapter for improved narrative flow, dialogue timing, and clarity.
  • Chores
    • Updated site navigation to include the new replication content.
    • Corrected archived post URLs in email data.
    • Enhanced OG image generation to support selective generation and safer runs when no matches are found.

@vercel

vercel Bot commented May 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
montu-mia Ready Ready Preview, Comment May 31, 2026 2:56pm

Request Review

@coderabbitai

coderabbitai Bot commented May 31, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3ba1836f-70ae-4bc0-b7cc-1e792509371f

📥 Commits

Reviewing files that changed from the base of the PR and between c2e13c0 and c582653.

⛔ Files ignored due to path filters (1)
  • public/og/sd/replication/image.png is excluded by !**/*.png
📒 Files selected for processing (3)
  • content/sd/replication/index.mdx
  • content/sd/replication/methods.mdx
  • content/sd/replication/replication.mdx
✅ Files skipped from review due to trivial changes (1)
  • content/sd/replication/methods.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
  • content/sd/replication/index.mdx

📝 Walkthrough

Walkthrough

Adds a new "replication" chapter under content/sd (navigation/meta), four Bengali MDX pages (index, redundancy, replication, methods), small narrative edits to the hook, updates several email post URLs, and adds an optional CLI filter to the OG image generation script.

Changes

Distributed-systems replication chapter

Layer / File(s) Summary
Chapter structure and navigation
content/sd/meta.json, content/sd/replication/meta.json
Navigation registry updated to add "replication" to the SD chapter and new replication metadata lists its sub-pages (index, redundancy, replication, methods).
Hook chapter narrative update
content/sd/hook.mdx
Narrative flow refined with "কয়েকদিন পর" transition, Monṭu's question reframed around replication lag vs. instant sync trade-offs, image path updated, dialogue timing changed to "আজ বিকেলে", and minor wording/punctuation edits.
Replication documentation: intro through topologies
content/sd/replication/index.mdx, content/sd/replication/redundancy.mdx, content/sd/replication/replication.mdx, content/sd/replication/methods.mdx
Four pages added: index opens with a replication/sharding narrative; redundancy contrasts backups vs live replication; replication explains synchronous, asynchronous, and semi-synchronous strategies; methods details single-leader, multi-leader, and leaderless topologies and additional patterns.
Emails data URL updates
emails/data/past-posts.json
Replace several url fields to point to https://trak.sh/montu01–https://trak.sh/montu07 instead of prior LinkedIn Pulse links.
OG image generator filter
scripts/generate-og-images.ts
Add optional CLI filter to generate OG images for a subset of chapters; avoid deleting public/og/sd when filtered, warn on no matches, and generate only matched MDX files.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰 আমি একটি র‌্যাবিট, কাগজে রেখে খাড়াই,
ডুপ্লিকেট কপি রাখি, কখনো নেই হাহাকারের সাই,
সিঙ্ক বা অ্যাসিঙ্ক—ছন্দ তোমার, সার্ভাররা হাসে,
পিক্সেলগুলো বলছে, ডাটা বাঁচে, গল্প থাকে।

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: it adds a new chapter on Data Redundancy and Replication with multiple new documentation files (4 new MDX pages in replication folder, updated hook.mdx, meta.json entries, and script enhancements for OG image generation).
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ch/data-replication

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (6)
content/sd/replication/replication.mdx (1)

1-43: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Required SEO keywords metadata is missing for this chapter page.

Please add 4–8 page-specific English keywords and include them with default keywords in a <meta name="keywords"> tag.

As per coding guidelines, “MDX frontmatter must include page-specific SEO tags in English (4-8 relevant keywords) combined with default keywords (Bangla, Bengali, System Design, etc.) in the <meta name="keywords"> tag.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/sd/replication/replication.mdx` around lines 1 - 43, The MDX file
frontmatter for the "রেপ্লিকেশন" chapter is missing the required SEO keywords
meta tag; add a <meta name="keywords"> entry inside the top YAML/frontmatter
block (between the --- markers) containing 4–8 page-specific English keywords
(e.g., "replication, synchronous replication, asynchronous replication,
semi-synchronous replication") combined with the default keywords (Bangla,
Bengali, System Design, etc.) so the tag includes both page-specific and default
keywords as mandated by the MDX frontmatter guidelines.
content/sd/hook.mdx (2)

24-24: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix Bengali typo in the user-facing sentence.

পরবর্তি should be পরবর্তী.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/sd/hook.mdx` at line 24, Replace the Bengali typo in the user-facing
sentence: locate the string containing "পরবর্তি চ্যাপ্টার এর আপডেট পেতে চাইলে
নিউজলেটার সাবস্ক্রাইব করে রাখুন:" and change the word "পরবর্তি" to the correct
"পরবর্তী" so the sentence reads "পরবর্তী চ্যাপ্টার এর আপডেট পেতে চাইলে নিউজলেটার
সাবস্ক্রাইব করে রাখুন:".

1-8: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Add page-specific SEO keywords metadata for this MDX page.

This file does not include the required page-specific English SEO keywords (4–8) combined with default keywords in a <meta name="keywords"> tag.

As per coding guidelines, “MDX frontmatter must include page-specific SEO tags in English (4-8 relevant keywords) combined with default keywords (Bangla, Bengali, System Design, etc.) in the <meta name="keywords"> tag.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/sd/hook.mdx` around lines 1 - 8, The frontmatter for the MDX page
titled "নতুন বিপত্তি!" is missing the required page-specific English SEO
keywords; update the YAML frontmatter to include a <meta name="keywords"> entry
(or a keywords/meta field used by the site) that lists 4–8 relevant English
keywords (e.g., "CAP theorem, PACELC, distributed systems, consistency,
availability") combined with the default keywords ("Bangla, Bengali, System
Design", etc.) so the final keywords string contains both the page-specific
English terms and the default keywords; ensure the keywords are comma-separated
and placed in the frontmatter near the title.
content/sd/replication/methods.mdx (1)

1-49: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Add mandatory SEO keyword metadata for discoverability/compliance.

This MDX file is missing the required page-specific English keywords and <meta name="keywords"> composition with default keywords.

As per coding guidelines, “MDX frontmatter must include page-specific SEO tags in English (4-8 relevant keywords) combined with default keywords (Bangla, Bengali, System Design, etc.) in the <meta name="keywords"> tag.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/sd/replication/methods.mdx` around lines 1 - 49, The MDX frontmatter
(the YAML block at the top of content/sd/replication/methods.mdx) is missing the
required SEO keywords meta tag; add a page-specific list of 4–8 English keywords
(e.g., "replication, leader election, single leader, multi-leader, leaderless")
and combine them with the default keywords (Bangla, Bengali, System Design,
etc.) into a <meta name="keywords"> entry inside the frontmatter so the file
contains a single meta tag that merges page-specific English keywords plus the
default keywords.
content/sd/replication/index.mdx (1)

1-14: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Missing required SEO keywords metadata in this new chapter page.

Please add page-specific English keywords (4–8) and ensure they are combined with default keywords in a <meta name="keywords"> tag for this MDX page.

As per coding guidelines, “MDX frontmatter must include page-specific SEO tags in English (4-8 relevant keywords) combined with default keywords (Bangla, Bengali, System Design, etc.) in the <meta name="keywords"> tag.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/sd/replication/index.mdx` around lines 1 - 14, This MDX page (title:
"ডাটা বাঁচানোর জাদুমন্ত্র" in content/sd/replication/index.mdx) is missing
page-specific SEO keywords; add a <meta name="keywords"> tag in the MDX
frontmatter (or at top of the file) that lists 4–8 English keywords relevant to
the chapter (e.g., "data replication, sharding, disaster recovery, fault
tolerance") combined with the required default keywords ("Bangla, Bengali,
System Design", etc.) so the final meta content is a single comma-separated
string containing both the page-specific English keywords and the default
keywords.
content/sd/replication/redundancy.mdx (1)

1-17: ⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Add required SEO keywords metadata to this MDX file.

The file content currently lacks the required page-specific English SEO keywords and <meta name="keywords"> integration with default keywords.

As per coding guidelines, “MDX frontmatter must include page-specific SEO tags in English (4-8 relevant keywords) combined with default keywords (Bangla, Bengali, System Design, etc.) in the <meta name="keywords"> tag.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@content/sd/replication/redundancy.mdx` around lines 1 - 17, The MDX file is
missing page-specific English SEO keywords and the required <meta
name="keywords"> tag; update the frontmatter block (the existing YAML between
the --- lines containing title and description) to include a keywords field with
4–8 relevant English keywords (e.g., "data redundancy, replication, fault
tolerance, high availability") merged with the default keywords (Bangla,
Bengali, System Design, etc.), and add a corresponding <meta name="keywords">
element in the MDX content/head section so the combined keywords are emitted on
the page (locate the frontmatter and the top of the document where meta tags are
inserted, e.g., around the existing title/description and before the main
content).
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@content/sd/hook.mdx`:
- Line 24: Replace the Bengali typo in the user-facing sentence: locate the
string containing "পরবর্তি চ্যাপ্টার এর আপডেট পেতে চাইলে নিউজলেটার সাবস্ক্রাইব
করে রাখুন:" and change the word "পরবর্তি" to the correct "পরবর্তী" so the
sentence reads "পরবর্তী চ্যাপ্টার এর আপডেট পেতে চাইলে নিউজলেটার সাবস্ক্রাইব করে
রাখুন:".
- Around line 1-8: The frontmatter for the MDX page titled "নতুন বিপত্তি!" is
missing the required page-specific English SEO keywords; update the YAML
frontmatter to include a <meta name="keywords"> entry (or a keywords/meta field
used by the site) that lists 4–8 relevant English keywords (e.g., "CAP theorem,
PACELC, distributed systems, consistency, availability") combined with the
default keywords ("Bangla, Bengali, System Design", etc.) so the final keywords
string contains both the page-specific English terms and the default keywords;
ensure the keywords are comma-separated and placed in the frontmatter near the
title.

In `@content/sd/replication/index.mdx`:
- Around line 1-14: This MDX page (title: "ডাটা বাঁচানোর জাদুমন্ত্র" in
content/sd/replication/index.mdx) is missing page-specific SEO keywords; add a
<meta name="keywords"> tag in the MDX frontmatter (or at top of the file) that
lists 4–8 English keywords relevant to the chapter (e.g., "data replication,
sharding, disaster recovery, fault tolerance") combined with the required
default keywords ("Bangla, Bengali, System Design", etc.) so the final meta
content is a single comma-separated string containing both the page-specific
English keywords and the default keywords.

In `@content/sd/replication/methods.mdx`:
- Around line 1-49: The MDX frontmatter (the YAML block at the top of
content/sd/replication/methods.mdx) is missing the required SEO keywords meta
tag; add a page-specific list of 4–8 English keywords (e.g., "replication,
leader election, single leader, multi-leader, leaderless") and combine them with
the default keywords (Bangla, Bengali, System Design, etc.) into a <meta
name="keywords"> entry inside the frontmatter so the file contains a single meta
tag that merges page-specific English keywords plus the default keywords.

In `@content/sd/replication/redundancy.mdx`:
- Around line 1-17: The MDX file is missing page-specific English SEO keywords
and the required <meta name="keywords"> tag; update the frontmatter block (the
existing YAML between the --- lines containing title and description) to include
a keywords field with 4–8 relevant English keywords (e.g., "data redundancy,
replication, fault tolerance, high availability") merged with the default
keywords (Bangla, Bengali, System Design, etc.), and add a corresponding <meta
name="keywords"> element in the MDX content/head section so the combined
keywords are emitted on the page (locate the frontmatter and the top of the
document where meta tags are inserted, e.g., around the existing
title/description and before the main content).

In `@content/sd/replication/replication.mdx`:
- Around line 1-43: The MDX file frontmatter for the "রেপ্লিকেশন" chapter is
missing the required SEO keywords meta tag; add a <meta name="keywords"> entry
inside the top YAML/frontmatter block (between the --- markers) containing 4–8
page-specific English keywords (e.g., "replication, synchronous replication,
asynchronous replication, semi-synchronous replication") combined with the
default keywords (Bangla, Bengali, System Design, etc.) so the tag includes both
page-specific and default keywords as mandated by the MDX frontmatter
guidelines.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 292cf782-dcd5-4821-9f2d-d46952ae988e

📥 Commits

Reviewing files that changed from the base of the PR and between 28af0a5 and 496a26f.

⛔ Files ignored due to path filters (7)
  • public/images/sd/replication/1.png is excluded by !**/*.png
  • public/images/sd/replication/2.png is excluded by !**/*.png
  • public/images/sd/replication/3.png is excluded by !**/*.png
  • public/images/sd/replication/4.png is excluded by !**/*.png
  • public/images/sd/replication/5.png is excluded by !**/*.png
  • public/images/sd/replication/6.png is excluded by !**/*.png
  • public/images/sd/replication/7.png is excluded by !**/*.png
📒 Files selected for processing (7)
  • content/sd/hook.mdx
  • content/sd/meta.json
  • content/sd/replication/index.mdx
  • content/sd/replication/meta.json
  • content/sd/replication/methods.mdx
  • content/sd/replication/redundancy.mdx
  • content/sd/replication/replication.mdx

@KhanShaheb34
KhanShaheb34 merged commit dfa51d9 into main May 31, 2026
4 checks passed
@KhanShaheb34
KhanShaheb34 deleted the ch/data-replication branch May 31, 2026 15:10
@coderabbitai coderabbitai Bot mentioned this pull request Jun 4, 2026
@coderabbitai coderabbitai Bot mentioned this pull request Aug 17, 2026

This branch was successfully deployed

1 active deployment
Preview — c5826535 Deployed May 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant