Skip to content

docs(developers): scaling the backend #77

Open

Description

@titilope12

Summary

No guidance for running the backend under load.

Background

The documentation is a Jekyll site using the just-the-docs theme (remote_theme in _config.yml), published by GitHub Pages at https://mmm-pay.github.io/payflow-docs/. Page order and nesting come from each page's front matter; SUMMARY.md lists pages for readers browsing the repository on GitHub. Content describes the v0.2.0 contracts (protocol/, reference/), the backend API and SDK usage (developers/) and user walkthroughs (guides/).

Why this matters

Operators hit limits blindly.

Where the change goes

  • new developers/scaling.md
  • SUMMARY.md

Implementation plan

  1. Cover database choice, read replicas, RPC providers, keeper throughput and caching.

If you find a better approach while working, describe it in a comment before changing direction.

Things to watch for

  • Accuracy against the v0.2.0 code: link to the source file or function a claim relies on.
  • Every new page needs front matter (title, and nav_order or parent) or it will not appear in navigation.
  • Tables and code blocks must stay readable at phone width.
  • Use the project's terms consistently (mandate, vault, keeper, plan) and define anything new.
  • Contract ids change on redeploys; avoid copying them into new pages where a link to deployments/testnet.env will do.

Acceptance criteria

  • Links to related backend issues

Test plan

Preview the site locally (see Getting started) and click through every changed page, link and anchor. Run any command or code sample yourself, against testnet where relevant, and say in the PR that you did.

Every acceptance criterion above needs evidence in the PR: a test for code, or a described manual check (with screenshots for UI) where a test is not possible.

Getting started

git clone https://github.com/MMM-pay/payflow-docs
cd payflow-docs
bundle install              # Ruby with Bundler
bundle exec jekyll serve    # http://localhost:4000

Effort and skills

  • Complexity: medium. A focused feature or fix: roughly one to three days, including tests.
  • Skills: technical writing and Markdown.

References

PR guideline

Branch issue-<n>-<slug>. Conventional commit title, e.g. docs(guides): .... New pages need front matter (title, nav_order or parent) and an entry in SUMMARY.md. Code samples must match the current contracts (v0.2.0) and API. Comment on this issue before starting so two people do not build the same thing, and link the issue in the PR (Closes #<n>).

CI checks (must be green)

  • GitHub Pages build succeeds
  • Every link on changed pages resolves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions