- 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
推薦閱讀
- 中文版Photoshop CS5數(shù)碼照片處理完全自學(xué)一本通
- OpenStack for Architects
- 輕松學(xué)Java
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- 返璞歸真:UNIX技術(shù)內(nèi)幕
- INSTANT Varnish Cache How-to
- Spark大數(shù)據(jù)技術(shù)與應(yīng)用
- 塊數(shù)據(jù)5.0:數(shù)據(jù)社會(huì)學(xué)的理論與方法
- 電氣控制與PLC技術(shù)應(yīng)用
- 和機(jī)器人一起進(jìn)化
- 電動(dòng)汽車驅(qū)動(dòng)與控制技術(shù)
- Puppet 3 Beginner’s Guide
- Creating ELearning Games with Unity
- 基于人工免疫原理的檢測(cè)系統(tǒng)模型及其應(yīng)用
- 運(yùn)動(dòng)控制系統(tǒng)