协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
software-architecture-overview【开发与工程】Provides a comprehensive understanding of modern software architecture patterns, including microservices, serverless, and event-driven architectures.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: software-architecture-overview description: Provides a comprehensive understanding of modern software architecture patterns, including microservices, serverless, and event-driven architectures. license: MIT compatibility: opencode metadata: version: "1.0.0" domain: software triggers: microservices, serverless, event-driven, architecture patterns, scalability, software design role: implementation scope: implementation output-format: code related-skills: software-development-lifecycle, software-testing-best-practices archetypes: tactical anti_triggers: monolithic, legacy response_profile: { verbosity: high, directive_strength: high, abstraction_level: tactical }
This skill provides a detailed look into various modern software architecture patterns that are crucial for the design and implementation of scalable and efficient software solutions in today’s cloud-native world.
Identify System Requirements
Understand the requirements and constraints of the application, including scalability, performance, and reliability needs.
Design Microservices
Decompose the application into microservices based on business capabilities. Define service boundaries, data ownership, and communication protocols.
Implement Service Discovery
Use tools like Spring Cloud or Eureka to handle service registration and discovery.
Deploy Using Containerization
Containerize microservices using Docker and orchestrate them using Kubernetes. Here's an example of a simple deployment using Docker:
version: '3'
services:
user-service:
image: user-service:latest
ports:
- "8080:8080"
order-service:
image: order-service:latest
ports:
- "8081:8081"
import json
def lambda_handler(event, context):
return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!')
}
const { PubSub } = require('@google-cloud/pubsub');
const pubsub = new PubSub();
exports.processOrder = (message, context) => {
const orderData = Buffer.from(message.data, 'base64').toString();
console.log(`Processing order: ${orderData}`);
};
Authoritative documentation links for this skill's domain. The model follows markdown links to resolve external references and inline content.