Näytä suppeat kuvailutiedot

dc.contributor.advisorViinikainen, Ari
dc.contributor.authorPatana, Kari
dc.date.accessioned2020-11-24T11:03:05Z
dc.date.available2020-11-24T11:03:05Z
dc.date.issued2020
dc.identifier.urihttps://jyx.jyu.fi/handle/123456789/72777
dc.description.abstractTutkielmassa selvitetään gRPC-protokollan sekä Protocol Buffers -viestimuodon soveltuvuutta mikropalveluympäristöön etenkin tehokkuuden näkökulmasta. Tutkielma sisältää kirjallisuuskatsauksen muuhun aihealueen tutkimukseen. Lisäksi tutkielma käsittää Go- ohjelmointikielellä suoritetun kokeen. Kirjallisuuskatsauksen perusteella gRPC ja Protocol Buffers voivat nopeuttaa tiedonsiirron nopeutta noin kaksinkertaiseksi sekä vähentää siirrettävän datan määrää. Toisaalta perinteistä JSON ja REST -tekniikkaa on mahdollista nopeuttaa käyttämällä tilanteeseen sopivaa JSON-kirjastoa sekä pakkaamalla REST-rajapinnan data Gzip-menetelmällä. Lisäksi joissain tilanteissa voi olla tehokkainta käyttää erityisesti käyttöympäristöön laadittua viestiprotokollaa. Tämä kuitenkin tekee yhteistoiminnan muiden järjestelmien kanssa hankalaksi. Myös viestijonoihin perustuva viestintäkanava voi olla hyvä ratkaisu etenkin kuorman tasaukseen mutta lisää kompleksisuutta. Omassa tutkimuksessa gRPC ja Protocol Buffers osoittautuivat hyväksi valinnaksi mikropalveluista koostuvaan järjestelmään, jossa luetaan OPC UA -protokollalla IoT-dataa ja välitetään sitä verkon yli toiselle mikropalvelulle. Sen sijaan samalla koneella toimivien mikropalvelujen väliseen tiedonsiirtoon JSON ja REST olivat hieman nopeampi vaihtoehto.fi
dc.description.abstractThis thesis discusses using the gRPC protocol and the Protocol Buffers message format in a microservices environment especially from the performance point of view. It contains a literary review of other articles in the field. The thesis also describes a test performed with the Go programming language. Based on the literary review, gRPC and Protocol Buffers may double the speed of data transfer and bring down the size of the data that’s transmitted. On the other hand, it is possible to speed up the JSON and REST technique by using a JSON library best suited for the use case and by using Gzip compression in the REST API. Sometimes it can also be preferable to use a dedicated messaging protocol tailored for the system. This, however, makes co-operation with other systems difficult. Using a message queue may also be a good alternative, especially if there’s a need to balance the load, but adds some complexity. In the original research gRPC and Protocol Buffers turned out to be a good choice for a microservices based system used for reading IoT messages with the OPC UA protocol and then transmitting them over a network to another microservice. For a case where both microservices were run on the same computer, JSON and REST turned out to be a slightly faster alternative.en
dc.format.extent78
dc.format.mimetypeapplication/pdf
dc.language.isofi
dc.subject.othermikropalvelu
dc.subject.othergo
dc.subject.othergRPC
dc.subject.otherprotocol buffers
dc.subject.otherProtoBuf
dc.subject.otherREST
dc.subject.otherOPC UA
dc.titleMikropalvelujen tiedonsiirron tehokkuus : vertailussa REST ja JSON sekä gRPC ja Protocol Buffers
dc.identifier.urnURN:NBN:fi:jyu-202011246740
dc.type.ontasotPro gradu -tutkielmafi
dc.type.ontasotMaster’s thesisen
dc.contributor.tiedekuntaInformaatioteknologian tiedekuntafi
dc.contributor.tiedekuntaFaculty of Information Technologyen
dc.contributor.laitosInformaatioteknologiafi
dc.contributor.laitosInformation Technologyen
dc.contributor.yliopistoJyväskylän yliopistofi
dc.contributor.yliopistoUniversity of Jyväskyläen
dc.contributor.oppiaineTietotekniikkafi
dc.contributor.oppiaineMathematical Information Technologyen
dc.rights.copyrightJulkaisu on tekijänoikeussäännösten alainen. Teosta voi lukea ja tulostaa henkilökohtaista käyttöä varten. Käyttö kaupallisiin tarkoituksiin on kielletty.fi
dc.rights.copyrightThis publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.en
dc.type.publicationmasterThesis
dc.contributor.oppiainekoodi602
dc.subject.ysotiedonsiirto
dc.subject.ysoJSON
dc.format.contentfulltext
dc.type.okmG2


Aineistoon kuuluvat tiedostot

Thumbnail

Aineisto kuuluu seuraaviin kokoelmiin

Näytä suppeat kuvailutiedot