What is a distributed cache?

Yes, half the data on server a, and half on server b would be a distributed cache. There are many methods of distributing the data, though some sort of hashing of the keys seems to be most popular. The terms server and node are generally interchangeable. A node is generally a single unit of some …

Read more

Abstraction vs Encapsulation in Java [duplicate]

OO Abstraction occurs during class level design, with the objective of hiding the implementation complexity of how the the features offered by an API / design / system were implemented, in a sense simplifying the ‘interface’ to access the underlying implementation. The process of abstraction can be repeated at increasingly ‘higher’ levels (layers) of classes, …

Read more

Node.js + Nginx – What now?

Nginx works as a front end server, which in this case proxies the requests to a node.js server. Therefore you need to setup an Nginx config file for node. This is what I have done in my Ubuntu box: Create the file yourdomain.example at /etc/nginx/sites-available/: vim /etc/nginx/sites-available/yourdomain.example In it you should have something like: # …

Read more