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

Chapter 2. Building a Coupon Site

The best way to understand Seneca and microservices architecture is by building a server-side application that would benefit from the microservices architecture. In previous chapter, we saw how large and complex server-side application benefits from the microservices architecture and why enterprises use microservices architecture. In this chapter, we will build a coupon website to practically demonstrate the benefits of using microservices architecture and Seneca to create a server-side application. While building this coupon site, you will also learn how to design a server-side application using the microservices architecture from scratch, how to split the functionality of the application into services, how a client can directly communicate with the services, and many other things.

Some of the things that we will cover in this chapter, apart from things related to Seneca and microservices architecture, are as follows:

  • Using the seneca-mongo-store plugin to store data in MongoDB
  • Creating a basic image storage server
  • Discussing HTTP basic authentication using the basic-auth npm package
  • Using the connect-multiparty npm package to parse HTTP POST requests with the multipart/form-data content type
  • Moving, deleting, and renaming files in Node.js using the fs npm package
  • Implementing pagination with MongoDB and Express
主站蜘蛛池模板: 阿城市| 宝山区| 枝江市| 青铜峡市| 长沙市| 塔河县| 商南县| 南昌市| 富平县| 嘉定区| 新兴县| 福贡县| 营山县| 裕民县| 扬州市| 昆山市| 吉林省| 长宁区| 尖扎县| 阿图什市| 江口县| 二手房| 绥滨县| 余庆县| 连城县| 郁南县| 家居| 碌曲县| 久治县| 谷城县| 固阳县| 绥江县| 龙游县| 贞丰县| 和林格尔县| 交口县| 册亨县| 赤峰市| 庆云县| 崇信县| 河曲县|