Mahmoudz/Porto
关于
一种软件架构模式,提供一套完整的指南、原则和模式,用于组织代码,以实现高可扩展性、可维护性和可复用性。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- -1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Porto (Software Architectural Pattern)
Welcome to Porto
Every codebase starts clean and ends tangled. Features pile up, boundaries blur, and the quick monolith becomes something nobody wants to touch, while the usual escape, breaking it into microservices, tends to scatter the mess rather than fix it.
Porto is a scalable software architectural pattern that heads this off by organizing your code into self-contained, reusable units from day one. Business logic lives in Containers; infrastructure lives in the Ship layer. The structure stays the same whether you run a single monolith or a fleet of microservices, so you scale by moving containers around, not by rewriting. Those same single-responsibility boundaries that keep humans oriented also make the codebase easy for AI tools to navigate and contribute to.
Porto now ships in two editions that share one philosophy. Pick based on who writes the code:
Porto SAP is for code that people read, review, and extend by hand, with AI assisting. Built for high-trust, security-critical systems. Read the docs at porto.zalt.me/docs/Intro.
Porto AI (private testing) is for codebases written and maintained primarily by autonomous AI agents: fewer files, fewer tokens, faster autonomous delivery. Read the docs at porto.zalt.me/ai/Intro.
"Simplicity is the ultimate sophistication." - Leonardo da Vinci
Clear Layers
App code is divided into Containers and Ship layers. Containers encapsulate the business logic, while Ship handles all infrastructure-related code, enabling easy scaling on demand by transitioning from monolithic to microservices.
Clean Components
Business logic in Containers is organized into Actions and Tasks. Actions initiate sequences of Tasks, each with one public function run() for a single responsibility, thereby enhancing maintainability and enabling code reusability.
Author
Mahmoud Zalt GitHub: Mahmoudz Twitter: @mahmoudz LinkedIn: mahmoudzalt Portfolio: zalt.me |
Support
I appreciate your support. Github Sponsor.
探索相关项目
加载中…