When the amount of data gets too large for our databases, it’s natural that we consider scaling them to cope with the increased load. However, depending on whether it is a SQL or NoSQL database, the techniques and principles behind scaling are different. We’ll be exploring the main ideas behind scalability for both databases. Since this article assumes some fundamental knowledge about databases and their properties, it would be helpful to review SQL/NoSQL databases.
Before we jump in, let’s understand the differences between the two types of scaling.
Vertical scaling is the process of improving the processing power of the server, by increasing its hardware capacity (e.g. CPU, RAM). While this could be a plausible option, there’s a threshold to the hardware improvements — it’s capped at what’s currently available. …
SQL stands for Structured Query Language. When people refer to SQL Databases, they’re actually referring to Relational Database Management System (RDBMS).
Data is stored in the form of tables. Each row is uniquely identified by a primary key and each row can also have a foreign key, which is the primary key of another table. Through the foreign key, a relation is formed with another table — hence the notion of relational databases.
Examples of SQL databases include MySQL, PostgreSQL and Oracle Database. …
In a monolithic architecture, clients typically make requests to one single server. As the number of requests starts to scale, the single server does not have sufficient capacity to serve all the incoming requests.
Vertical scaling could be an option, where more CPU/RAM is added to the servers. This option could work for only so long before the hardware limitations are encountered.
In most cases, horizontal scaling, in which more servers are added, is usually a more scalable alternative.
Recently, I came across a usage of authentication with JWT in the codebase at work. I was curious to figure out the mechanism difference between JWT and the standard session token/IDs, especially since JWT has been increasingly popular in recent times.
HTTP is a stateless protocol, which simply means the current client request is independent of any previous requests, and the server doesn’t have any knowledge of any prior requests.
For example, if you’re simple fetching static data, such as going to
www.facebook.com, the servers don’t really need to know who the client is since they’re returning a log-in page and not any form of sensitive information. …
Often times, we need to render a child view dynamically. For instance, we might have a parent view that has a tab menu, and we’d like to render the views in accordance with whichever tab is being selected.
Being new to Angular, this is something I experience, and it took me a fair amount of time to get the implementation working despite following the official Angular guide. Reading Maxim Koretskyi’s article on DOM manipulation definitely helped my understanding, so I’ll recommend you give it a read, too, if you want more in-depth explanations.
In this piece, I’ll highlight and summarize three key concepts that’ll quickly get you running. …
However, in reality, we are not always guaranteed that the data exists, but mistakenly assume that it does. I have been in that position multiple times and I often find myself thinking: “How could that value not be populated?”
Thankfully, all we need to prevent these pesky errors is an additional check for
This article is a product of a final project from a course NM3239 (Retrieving, Exploring, and Analysing Data) in the National University of Singapore. Since this is a Communications and New Media class, we hope our readers extend some grace when it comes to the data science process. All analyses and plots were generated in R Studio. You can check out my Github repo here.
On 12th September 2017, the Apple Event caused the share price of Energous, a wireless charging company, to drop as much as 21%. This decline in share price was induced by Apple’s latest announcement that they were using the Qi Wireless standard instead. Conversely, it has been observed that Apple’s manufacturer partners have seen an increase in their stock price following the announcement of their partnership during the event. It is by no coincidence that Apple has such great influence over the share prices of its partner companies. …