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

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
主站蜘蛛池模板: 茶陵县| 仁怀市| 土默特右旗| 安陆市| 阿拉善右旗| 昂仁县| 临汾市| 阳朔县| 格尔木市| 中牟县| 神木县| 吉林省| 宜黄县| 龙南县| 江达县| 阿克陶县| 准格尔旗| 巴彦县| 额济纳旗| 马鞍山市| 铜鼓县| 东光县| 临海市| 长兴县| 奉新县| 海安县| 芜湖市| 石楼县| 莎车县| 巴青县| 大竹县| 渝中区| 湖南省| 城口县| 孝义市| 临夏县| 惠水县| 泌阳县| 睢宁县| 夹江县| 湖州市|