What is CORS?

Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any other origins (domain, scheme, or port) than its own from which a browser should permit loading of resources.

For example, web app on domain http://domaina.com makes the HttpRequest to a web app on domain http://domainb.com.

How CORS work?

In modern browsers due to security reasons cross-origin HTTP request is not allowed.

Whenever there is a CORS request browser will send a preflight request prior to sending the actual request to find out whether CORS request is valid or not.

The preflight…


The term algorithm is very familiar in the field of computer science and it acquires an important place in all computing systems.

An algorithm is any well-defined set of computational procedures that takes some value, or set of values, as input and produces some values, or set of values as output.

For example, we might need to sort a sequence of numbers in non-decreasing order.
Input: A sequence of n numbers (a1, a2, a3,..., an).
Output: A permutation (a1', a2', a3',..., an’) of input sequence such that a1'≤a2'≤...≤an’.

This problem is known as the sorting problem.

We will consider a…


This article focuses on plain GraphQL functionality.

Source: graphql.org

What is GraphQL?

GraphQL is a query language that provides a complete and understandable description of how to load data from a server. GraphQL enables declarative data fetching where a client can specify exactly what data it needs from an API.

GraphQL vs. REST

REST has been a popular way to expose data from a server. But as the applications became more complex, people started facing problems with the REST architectural style. Let’s consider an example of a Movie Review System to understand this more.

Suppose we have three resources — Movies, Ratings, and Reviews. Our requirement is to…


This article focuses on basic overview of Neo4j and Graph Database.

Source: neo4j.com

What is Graph database?

  • Graph database uses graph structures with nodes, edges and properties to represent and store data. The graph relates data items to a collection of nodes and edges, where edges represent relationships between nodes. Graph database is designed to treat the relationships between data as important as the data itself.

Why Graph database?

  • Relational database uses ledger style structure and stores data in the form rows and columns. The relation between two tables is mentioned using foreign key constraint. …

Aakash Sorathiya

A Developer with strong passion for self-improvement.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store