k4.png

Credits

Submission Links

https://x.com/davidnzubee/status/2033639305697235421?s=46

About

The repository contains side-by-side implementations of common backend systems, built in both traditional i.e. Web2 utilizing Go, Python & Typescript and on-chain i.e. Web3 architectures. It serves as a "Rosetta Stone" for senior engineers transitioning from centralized servers to decentralized programs on Solana.

Each pattern demonstrates a core architectural translation from trusted servers to trustless code, from cron jobs to permissionless cranks, and from private databases to a global public ledger.

All contracts are written in Native Solana over the more popular Anchor to show concepts Anchor abstracts such as raw account validation by hand, manual PDA derivation, instruction data serialization and lots more. All contracts in this repo are deployed to the Solana Devnet.

Official Wallet: k42Pk19FEVwFJe9im3hjDkVpPLvrogUrKcrwWd3su7n


Implemented Patterns

# Pattern Web2 Stacks Web3 Contract Trade-offs & Constraints
1 Escrow Engine JavaScript
Python
Go

(Explanation) | AKAvMTVum6WGnFYwk9b4naiQqj2fmW51u6vzhYPUurU4

(Explanation) | (Trade-offs)

(Constraints) | | 2 | Subscription Billing | Typescript Python Go

(Explanation) | A714aXUqGQFaZ3SXY1Q9xzyNqBvdcSGLjhRZ7JULyGCJ

(Explanation) | (Trade-offs)

(Constraints) | | 3 | Order Matching Engine | Typescript Python Go

(Explanation) | 8Q2K82AUct9x7RJcqaNtMwmLzKKAeWxUujpXQA7YvXUW

(Explanation) | (Trade-offs)

(Constraints) | | 4 | RBAC System | Typescript Python Go

(Explanation) | btZBKz1iCAna9pTM3ZL6G1PBhAAEjK67JtDeof4znxR

(Explanation) | (Trade-offs)

(Constraints) | | 5 | Rate Limiter System | Typescript Python Go

(Explanation) | 3h6rh1f1dUr6p5qGzWKascz88uwWmQnEjzYymTCR4VTd

(Explanation) | (Trade-offs)

(Constraints) | | 6 | Job Queue | Typescript Python Go

(Explanation) | 3Csd7mZefKgXdsm2CoCt4gqr65YqGDQXoSqZ8oPuS48X

(Explanation) | (Trade-offs)

(Constraints) | | 7 | API Key Management | Typescript Python Go

(Explanation) | 8iChDc9bkrNzvkx8SVc8MgQz8ZBcTJgtS5FW8MmvQBPS

(Explanation) | (Trade-offs)

(Constraints) | | 8 | Leaderboard Engine | Typescript Python Go

(Explanation) | EPmYi2hEfrPFpZRKm3RKHYsDckEWNwTbNUKvEYDaXeY4

(Explanation) | (Trade-offs)

(Constraints) | | 9 | Auction Engine | (coming soon) | (coming soon) | (coming soon) |


Repository Structure