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

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
主站蜘蛛池模板: 卢氏县| 西华县| 淮阳县| 含山县| 安图县| 长泰县| 图木舒克市| 伽师县| 衡水市| 桑植县| 连山| 文水县| 长葛市| 岚皋县| 尼玛县| 林周县| 怀安县| 江安县| 大关县| 祥云县| 珲春市| 搜索| 新安县| 伊通| 灵山县| 安徽省| 潮安县| 黄浦区| 红安县| 尚义县| 敦化市| 永寿县| 娱乐| 承德市| 新巴尔虎左旗| 盈江县| 乐业县| 正定县| 台中市| 宁远县| 武定县|