Irsalina, Dwi (2019) Implementasi Caching pada Web Services Berbasis REST. Other thesis, Institut Teknologi Sepuluh Nopember.
|
Text
05111540000004-Undergraduate_Theses.pdf Restricted to Repository staff only Download (2MB) | Request a copy |
Abstract
REST merupakan arsitektur standar dari web dan menggunakan protokol HTTP untuk melakukan komunikasi data. Pada myITS digunakan arsitektur REST dalam pengembangannya. Mekanisme kerja myITS mobile, myITS mobile memanggil API gateway (api.its.ac.id). API gateway memanggil back-end API yang terdiri dari AkademikAPI, IntegraAPI dan SimpegAPI. Setiap API kemudian baru mengakses masing-masing basis data. Pengaksesan basis data dapat membutuhkan waktu yang lama, disebabkan karena banyaknya permintaan data yang sama secara bersamaan. Oleh karena itu perlu dilakukan cache untuk menyimpan data. Cache memberikan data yang telah disimpan tanpa harus mengambil dari basis data. Salah satu penyedia caching adalah Redis. Redis adalah struktur data pada memori yang bersifat open source, digunakan sebagai basis data dan cache. Pada Redis setiap key diisi oleh value dimana penyimpanan data dilakukan pada memori. Apabila ada request, key tersebut digunakan untuk mengecek apakah sudah ada pada Redis atau belum. Apabila sudah ada pada Redis, maka data yang diambil dari cache. Dengan melakukan caching, data dapat diakses lebih cepat karena data sudah tersimpan pada memori. Hasil dari tugas akhir ini dapat dilihat dari kebenaran data yang dilakukan cache dan rata-rata penurunan response time sebesar 34,03%.
==================================================================================================================================
REST is a standard architecture from web which use HTTP protocol to communicate the data. This type of architecture is used in myITS. Application myITS mobile starts from accessing myITS mobile, then myITS mobile calls API gateway (api.its.ac.id). API gateway calls back-end API that contains AkademikAPI, IntegraAPI and SimpegAPI. Then, each API access their database. Accessing database needs a long time, because of a lot of request at the same time. Therefore, caching is needed for storing the same data. Cache returns the data that have been saved. In caching, there is no need to take data from database. One of caching system is Redis. Redis is an open source, in-memory data structure store, used as a database and cache. In Redis every key is filled by value where the data is saved in memory. The key is used to check whether that key is on Redis, if the key is existing on Redis, the data is taken from Redis. In caching, data can be accessed faster because the data have been saved on memory The result of this final project can be seen from the success of the data that can be cached and the average of response time reduction for about 34.03%.
| Item Type: | Thesis (Other) |
|---|---|
| Uncontrolled Keywords: | Basis data, cache, data, Redis, REST |
| Subjects: | T Technology > T Technology (General) > T58.6 Management information systems |
| Divisions: | Faculty of Information Technology > Informatics Engineering > 55201-(S1) Undergraduate Thesis |
| Depositing User: | Dwi Irsalina |
| Date Deposited: | 23 Jul 2026 03:01 |
| Last Modified: | 23 Jul 2026 03:01 |
| URI: | http://repository.its.ac.id/id/eprint/70364 |
Actions (login required)
![]() |
View Item |
