Analisis Perbandingan Performansi Antara Websocket Dengan Long Polling Pada Aplikasi Chatting Berbasis Web

Pradana, DhianGalang (2017) Analisis Perbandingan Performansi Antara Websocket Dengan Long Polling Pada Aplikasi Chatting Berbasis Web. Sarjana thesis, Universitas Brawijaya.

Abstract

Aplikasi chat merupakan aplikasi bersifat real time. Untuk membuat aplikasi real time, terdapat beberapa teknik yang bisa digunakan. Dua teknik yang sering digunakan adalah long polling dan websocket. Long polling merupakan teknik dimana client melakukan request ke server namun server tidak akan langsung mengembalikan response. Websocket adalah teknologi yang mendefinisikan komunikasi full-duplex channel yang beroperasi melalui soket tunggal melalui web. Pengujian performansi dilakukan untuk membandingkan kinerja performansi dari long polling dan websocket. Pengujian pada metode longpolling dilakukan dengan menggunakan aplikasi apache JMeter. Pengujian pada metode websocket dilakukan dengan menggunakan aplikasi Thor. Parameter pengujian yang dilakukan meliputi pengujian latency, pengujian CPU usage, pengujian memory usage, dan pengujian error rate. Hasil pengujian latency menunjukkan nilai latency yang dimiliki oleh websocket lebih rendah dibandingkan dengan nilai latency yang dimiliki oleh long polling. Hasil pengujian pengujian CPU Usage menunjukkan metode websocket memiliki tingkat load CPU yang stabil karena berbanding lurus dengan peningkatan jumlah koneksi. sedangkan untuk long polling, load cpu yang terjadi ketika diuji tidak berbanding lurus dengan jumlah koneksi. Hasil pengujian memory usage menunjukkan metode websocket menggunakan memory yang lebih kecil jika dibandingkan dengan penggunaan memory pada metode longpolling. Hasil pengujian error rate menunjukkan metode websocket memiliki tingkat realibilitas yang lebih tinggi dibandingkan dengan metode long polling. Dari beberapa bagian pengujian yang dilakukan menunjukkan jika dibandingkan dengan long polling, metode websocket lebih memenuhi kebutuhan real time sebuah aplikasi.

English Abstract

Chat app is a real time based application. There are several techniques that can be used to create real-time applications. Two techniques which often used are long polling and Websockets. In long polling, the client performs a request to the server, but the server will not immediately return the response. WebSocket is a technique that defines a full-duplex communication channel that operates through a single socket over the web. Performance testing compare the performance of long polling and websocket. The apache JMeter is used for long polling performance testing. Thor is used for websocket performance testing. The parameter for testing is calculate the latency, memory usage, CPU usage, and error rate. The test results show that the value of websockets latency is lower than the value of long pollings latency. Then, CPU usage test results show that websocket’s cpu load levels are stable because it is similiar to increase in the number of connections. Besides that, long polling’s cpu load is not similiar to the number of connections. Memory usage test results show that websocket uses less memory than long polling. The test results show websocket error rate have a higher level of reliability than long polling. From the results above, there is a conclution that websocket is better for a real time application.

Item Type: Thesis (Sarjana)
Identification Number: SKR/FTIK/2017/65/051701161
Subjects: 000 Computer science, information and general works > 005 Computer programming, programs, data
Divisions: Fakultas Ilmu Komputer > Teknik Informatika
Depositing User: Kustati
Date Deposited: 20 Feb 2017 09:50
Last Modified: 21 Oct 2021 01:39
URI: http://repository.ub.ac.id/id/eprint/147497
[thumbnail of skripsi_final.pdf]
Preview
Text
skripsi_final.pdf

Download (2MB) | Preview

Actions (login required)

View Item View Item