Summary

This chapter was the glue between the last two chapters. We began the chapter by taking a deep dive into how our node server communicates with native libraries. You learned about the asynchronous model that node uses to make I/O operations more efficient. This model is important to understand because it will also carry forward to the coming chapters.

We proceeded to integrate the sensor API from the previous chapter with our node server, and then we went on to see some of its limitations due to the hardware and sampling rate. Caching turned out to be a convenient and effective way to get around these limitations. The kind of local memory caching used in this chapter, however, would not be effective in a system that has multiple Raspberry Pi systems and sensors working together. In the upcoming chapters, you will learn about a more production-grade model to store and read our data.

Although we have a working application, our work is not done yet. Our application, in its current state, seems like it's more suitable for computers compared to humans. This is not something a user of your application would be delighted to see.

It's rather.... plain. As a user, I want a more intuitive way to see my information and not plain text in the corner of my screen.

In the next chapter, you will learn how to solve this problem by building a UI to present the information we have in a more consumable way to humans. This does not mean that the APIs we built will go to waste. In fact, we are going to make use of these APIs to retrieve the information that we present to the user.

 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.33.178