官术网_书友最值得收藏!

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
主站蜘蛛池模板: 抚顺县| 读书| 泰和县| 夏河县| 景谷| 秦安县| 资阳市| 富锦市| 德令哈市| 始兴县| 遵化市| 栾川县| 临夏县| 通化县| 定结县| 穆棱市| 上林县| 嘉义市| 左权县| 通许县| 远安县| 延安市| 青阳县| 皋兰县| 桓仁| 淳安县| 满洲里市| 江源县| 台湾省| 泽库县| 贺兰县| 贵南县| 湟源县| 荔浦县| 平阳县| 额敏县| 伊吾县| 高陵县| 凭祥市| 毕节市| 柞水县|