协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
btp-developer-guide【开发与工程】SAP BTP Developer Guide — runtime selection, CAP/ABAP Cloud/SAP Build, integration patterns, CI/CD, monitoring
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: btp-developer-guide description: SAP BTP Developer Guide — runtime selection, CAP/ABAP Cloud/SAP Build, integration patterns, CI/CD, monitoring trigger: keywords: [btp developer, runtime selection, cap vs abap, btp architecture, cf vs kyma, build app on btp] intent: Designing and building applications on SAP BTP prerequisites:
cf login -a api.cf.<region>.hana.ondemand.com)| Runtime | Best For | Languages |
|---|---|---|
| Cloud Foundry | CAP apps, microservices, stateless APIs | Node.js, Java, Python, Go |
| Kyma | Event-driven, custom Docker stacks | Any container |
| ABAP Environment | RAP Cloud extensions, Steampunk | ABAP (clean core) |
| SAP Build | Citizen dev, low-code process automation | LCNC |
cds init my-project && cd cds-project
cds add mta && cds add app --ui5 && cds add sample
cds watch # http://localhost:4004
npx cds add xsuaa # authentication
npx cds add hana # production DB
mbt build # → mta_archives/*.mtar
cf deploy mta_archives/*.mtar
| Pattern | BTP Service | Protocol |
|---|---|---|
| REST/OData Proxy | API Management | HTTP |
| Async Events | Event Mesh | MQTT, CloudEvents |
| B2B/EDI | TPM | AS2, OFTP2 |
| File Transfer | CPI | SFTP |
| Scheduled Jobs | Job Scheduling | Cron-triggered REST |
# .pipeline/config.yml
stages:
- Build: mbt build
- Test: cds test --coverage
- Lint: eslint src/ && abaplint --format json
- Deploy DEV: cf deploy mta_archives/*.mtar -f
- Deploy PRD: manual approval → cf deploy mta_archives/*.mtar
| Service | What It Monitors |
|---|---|
| Cloud Logging | Centralized logs via OpenSearch + Kibana dashboards |
| Alert Notification | Proactive alerts (email, webhook, Slack) |
| Automation Pilot | Automated incident response (remediation) |
cds add mta and deploy via mbt build → cf deploy.cf env APP_NAME to verify binding.cf app APP_NAME for mem usage; scale with cf scale APP_NAME -m 256M.cds add xsuaa generates the security descriptor; customize scopes/roles in xs-security.json.cf apps # list deployed apps
cf services # list service instances
cf logs APP_NAME --recent # recent logs
curl https://<app>.cfapps.<region>.hana.ondemand.com/health -s