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

Knowing the application

It is time to get to know the application that will be used throughout the book. This application will be the source of all explanations of concepts and all practical code that will be developed in the book. The base system is a news portal that consists of, basically, three areas:

  • News: This is the news itself.
  • Recommendations: These are responsible for storing user preferences and thus are able to offer specific news to users or even compose a completely unique home page according to the user profile.
  • User: This is the basic registration information of a user.

All the application's business is on the same source code, that is, a monolithic software. The application was developed on the Django Framework, using PostgreSQL as a database, and Memcached as cache, which is only applied to the database layer.

With this structure, if there is an overload on the level of recommendations, all the applications must be scaled, and not only the part referring to the recommendations, because the application is monolithic. Another problem is that if one commits and incurs a problem, it propagates errors in segments that have no relationship with deficiency in the composition of domains. Something expensive for the application changes in the stack. If you want to change the type of cache used, then all other caches will be lost.

主站蜘蛛池模板: 特克斯县| 阜城县| 蒲城县| 应城市| 班戈县| 灵寿县| 克东县| 剑河县| 临武县| 武功县| 招远市| 修文县| 五华县| 隆德县| 南皮县| 攀枝花市| 维西| 大方县| 德兴市| 山丹县| 阜南县| 定襄县| 石景山区| 安丘市| 彰化县| 邵阳市| 湘西| 二手房| 中方县| 巨野县| 甘孜县| 东乌珠穆沁旗| 台东市| 樟树市| 雅安市| 沙坪坝区| 闽侯县| 永济市| 长春市| 安国市| 德惠市|