- 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
推薦閱讀
- Mastering Matplotlib 2.x
- Mastering Hadoop 3
- 嵌入式系統(tǒng)應(yīng)用
- Machine Learning for Cybersecurity Cookbook
- 并行數(shù)據(jù)挖掘及性能優(yōu)化:關(guān)聯(lián)規(guī)則與數(shù)據(jù)相關(guān)性分析
- 返璞歸真:UNIX技術(shù)內(nèi)幕
- 大數(shù)據(jù)時(shí)代的數(shù)據(jù)挖掘
- Visual C# 2008開發(fā)技術(shù)詳解
- 大數(shù)據(jù)平臺異常檢測分析系統(tǒng)的若干關(guān)鍵技術(shù)研究
- 觸控顯示技術(shù)
- Implementing AWS:Design,Build,and Manage your Infrastructure
- Dreamweaver CS6精彩網(wǎng)頁制作與網(wǎng)站建設(shè)
- Citrix? XenDesktop? 7 Cookbook
- 人工智能技術(shù)入門
- 電氣控制與PLC原理及應(yīng)用(歐姆龍機(jī)型)