Posts

Showing posts from May, 2019

Rest Services

REST Services Introduction REpresentational State Transfer protocol. Built around things or resources - Resource based. Nouns vs actions. REST services are not action based though HTTP verbs being used to perform different operations on the same resource. Resource are identified by a URI. Multiple URIs may refer the same resource. Client and server communication. JSON or XML is used to pass data. Lightweight, scalable and maintainable. &#9679 HTTP Verbs &#9679 Constraints Uniform interface Based on the HTTP specification. URIs refers to resources and HTTP verbs are actions performed on resources. HTTP verbs (GET, PUT, POST, DELETE). URIs (resource). HTTP request (header, body, query parameters and URI) and response (header/status and body). Use hypermedia to better navigation through resources (HATEOAS - Hypermedia As The Engine Of Application State). Use links for retrieval of related resources. Stateless No client state on the server. Self cont...

React JS

React JS Introduction Developed and maintained by Facebook and Instagram. A JavaScript library for creating user interfaces. Serves as the view of MVC architecture. Suitable for large web application which use data and change over the time without reloading the entire page. React Native caters developing mobile application for various platforms and React VR caters developing VR applications. Aims at Speed, Simplicity and Scalability. &#9679 Notable features One-Way data flow. Single source of truth - Data is originated and kept in one place, data is immutable. Data flow from the parent component to the child component. Action flow from child component to parent component. Virtual DOM DOM manipulation is cost instead react create a virtual DOM tree and compare it with the rendered tree and update only what is changed. JSX React JS language for defining user interfaces. HTML like syntax. Prevents cross-site scripting attacks by converting expressions to ...