Giter VIP home page Giter VIP logo

tbd-assignment-2's Introduction

Members

  1. 6030053921 Keerati Chuatanapinyo
  2. 6030559121 Siwat Pongpanit
  3. 6030631621 Anawat Trongwattananon
  4. 6031022621 Thanapun Yan-amporn
  5. 6031055321 Weerayut Thinchamlong
  6. 6031059921 Setthanan Nakaphan

Assignment #2: gRPC and REST API Benchmarking

Graphs showing the benchmarking results with the explanation of your experimental settings.

Scenario a. Single client with a small call to insert a book item, a bigger call to insert a list of multiple book items.
In this scenario we just loop through the insert service using exec of child process.

Scenario b. Multiple clients with different kind of calls.
Both applying the child process to send request and have two clients.

Scenario c. Vary the number of concurrent calls from 1 to 4096 calls. Both using Class to generate multiple client objects to call concurrent calls.

Discussion of the results why one method is better the other in which scenarios.

In scenario a, a performance of gRPC inserting a book is quite close to a performance of REST API. We notice that ina scenario c gRPC performs far better than REST API. Of course, gRPC would be better than REST API since gRPC uses http/2 while REST API uses http/1. However, there is something weird about scenario b. I think it is because of the interface of gRPC client to access the server makes its performance more terrible than REST API.

Comparison of the gRPC and REST API from the aspects of language neutral, ease of use, and performance.

Language Neutral: Since REST API has been renowed and dominated in software development industry, developer usually familiar with the syntax of REST API more than gRPC.
Ease of Use: REST API's payload format is JSON which is more readable than proctobuf. Additionally, client need no setup to sent a request to a server just call a web server address.
Performance: From the benchmarking experiment, overall, gRPC is faster than REST API.

Does your results comply with the results in this Medium article? How?

Not really since in scenario b result does not comply with a benchmark result in that article.

tbd-assignment-2's People

Contributors

enwee1998 avatar setthanan avatar pauanawat avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.