GraphQL is an application layer server-side technology which is developed by Facebook for executing queries with existing data. GraphQL can optimize RESTful API calls. It gives a declarative way of fetching and updating your data. GraphQL helps you to load data from server to client. It enables programmers to choose the types of requests they want to make.
REST is a software architectural style that defines a set of constraints for creating web services. It is designed specifically for working with media components, files, or hardware device. The full form of REST is Representational State Transfer.
• GraphQL is an application layer server-side technology that is used for executing queries with existing data while REST is a software architectural style that defines a set of constraints for creating Web services.
• GraphQL can be organized in terms of a schema whereas REST can be arranged in terms of endpoints.
• The development speed in GraphQL is fast while the development speed in REST is Slow.
• The message format for GraphQL mutations should be a string while the message format for REST mutations can be anything. GraphQL uses metadata for query validation whereas REST does not have machine-readable metadata cacheable
Example: gihub
Apache web server running on an Amazon Elastic Compute Cloud (Amazon EC2) Linux instance is intermittently unresponsive and freezing. After checking log file:
$ sudo su
$ vi /var/log/messages
Out of memory error was found.
We continue topic -bash: fork: Cannot allocate memory issue in EC2 (Wordpress) environment and now e can talk about second step: Apache optimization. The reason is kernel may kill your processes. The kernel would only kill a process under exceptional circumstances such as extreme resource starvation (think mem+swap exhaustion). In this situation your EC2 will work fine but your website / ssh access or something else will not. How we can resolve it?
More