- Serverless Design Patterns and Best Practices
- Brian Zambrano
- 143字
- 2021-08-27 19:12:04
Organization of the application code
Organization of our application code is entirely different than our prior discussion, although there is a bit of overlap.
Laying out application code in a serverless project is slightly different than in a traditional web application. While the differences aren't that drastic, I find serverless projects a bit more susceptible and intolerant of designs or layouts that are not thought through in detail. Because it's so easy to get started, it's also easy to start moving in the wrong direction before thinking through and answering essential design decisions.
Over the years, these are a few of the big lessons I've learned when writing serverless application code:
- Configuration should be done with environment variables, rather than different configuration files
- Application code should be well structured, highly modular, and namespaced
- Think through how many functions you need before coding begins
推薦閱讀
- 零起步輕松學單片機技術(第2版)
- 計算機應用
- Microsoft Power BI Quick Start Guide
- 工業機器人產品應用實戰
- Dreamweaver CS3網頁制作融會貫通
- Mastering D3.js
- Docker High Performance(Second Edition)
- Lightning Fast Animation in Element 3D
- 基于神經網絡的監督和半監督學習方法與遙感圖像智能解譯
- 在實戰中成長:C++開發之路
- Linux Shell Scripting Cookbook(Third Edition)
- 自適應學習:人工智能時代的教育革命
- Hands-On Geospatial Analysis with R and QGIS
- 牛津通識讀本:大數據(中文版)
- Containerization with Ansible 2