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

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
主站蜘蛛池模板: 修武县| 博客| 黎平县| 宜春市| 留坝县| 彰武县| 连江县| 清丰县| 连州市| 镇远县| 长治市| 乳源| 玉门市| 神木县| 砚山县| 江阴市| 白沙| 阜阳市| 灵武市| 南漳县| 常州市| 辰溪县| 怀安县| 个旧市| 衡山县| 贵德县| 如皋市| 秭归县| 曲阳县| 诏安县| 射洪县| 宜川县| 海宁市| 遵义市| 桑日县| 卢龙县| 维西| 福鼎市| 商水县| 金湖县| 莱州市|