- Full Stack Web Development with Raspberry Pi 3
- Soham Kamani
- 195字
- 2021-07-15 17:10:29
The overall architecture
Now that we have seen the interfaces between the different layers of the web development stack, we can visualize the overall architecture of the system:

We can now see a high-level overview of all the components discussed so far. The interfaces between each layer discussed in the previous sections are now represented by the boundaries between each block in the diagram (Public APIs, STDOUT, and Database queries). The system will work as follows:
- The server application running on the Raspberry Pi interfaces with the rest of the components.
- It starts the program to get sensor values from the Pi and reads its output through STDOUT.
- Every time the server application receives a new value, it stores it in memory as well as in the database. The in-memory value is replaced every time a new value is received from the sensor.
- The client views and interacts with the application by calling APIs exposed by the server:
- The API to get the current value returns the value that is currently stored in the memory of the server application
- The API to get historical values has the server query the database and return its results
推薦閱讀
- Go Web編程
- Mobile Application Development:JavaScript Frameworks
- 編程的修煉
- 自己動手寫Java虛擬機
- FreeSWITCH 1.6 Cookbook
- Django Design Patterns and Best Practices
- Java開發入行真功夫
- Java EE 7 Development with NetBeans 8
- R的極客理想:工具篇
- Unity 5.x By Example
- Java Web程序設計任務教程
- Hands-On Neural Network Programming with C#
- Building Dynamics CRM 2015 Dashboards with Power BI
- C++程序設計
- 快樂編程:青少年思維訓練