Per-Magnus Holtmo: Using gRPC to fight Mordor

  Рет қаралды 1,070

SwedenCpp

SwedenCpp

Күн бұрын

There are several options to set up communication between a set of microservices. This presentation will show a very hands-on approach to how to use gRPC with C++. We will define the interface and go over the required steps to set up clients and servers using both synchronous and asynchronous functions. Common pitfalls will be discussed, as well as how to avoid them.
The event was recorded at StockholmCpp 0x2D
www.meetup.com...
The event was kindly hosted by Prevas AB, www.prevas.se/
More info about C++ user groups in Sweden at swedencpp.se

Пікірлер: 4
@erkintek
@erkintek 6 ай бұрын
I cant understand why boost asio post is used!
@QuavePL
@QuavePL 6 ай бұрын
as async task executor
@Roibarkan
@Roibarkan 6 ай бұрын
To elaborate on @QuavePL’s answer - I believe the idea is that all the public functions in AsyncService should return as quickly as possible and have their work done asynchronously (for example in another thread, and in this case on the main thread) and call ‘Finish()’ when they are done (when they populated the response object, ideally). This quick return “ensures” that the gRPC thread isn’t blocked.
@pmholtmo6585
@pmholtmo6585 6 ай бұрын
Correct answers above. We need to handle the request in a separate thread for asynchronous handling and return the call from the gRPC thread directly. I just picked boost asio as an example since it is pretty easy to work with.
Jonas Minnberg: A 6502 emulator with C++
47:52
SwedenCpp
Рет қаралды 1,4 М.
Eric Landström: The bugs I remember
22:36
SwedenCpp
Рет қаралды 1 М.
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,3 МЛН
iPhone or Chocolate??
00:16
Hungry FAM
Рет қаралды 46 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 2,2 МЛН
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 278 М.
gRPC для микросервисов или не REST-ом единым
1:52:27
Сергей Петрелевич
Рет қаралды 4,5 М.
The RPC Revolution: Getting the Most Out of gRPC - Richard Belleville & Kevin Nilson, Google
37:15
CNCF [Cloud Native Computing Foundation]
Рет қаралды 2,1 М.
Mathieu Ropert: Data Storage in Entity Component Systems
1:09:50
SwedenCpp
Рет қаралды 2,8 М.
How to: gRPC in C++
22:30
Practical Software
Рет қаралды 5 М.
Johan Berg: Building libraries on top of Boost.Asio
19:49
SwedenCpp
Рет қаралды 1,7 М.
Arvid Norberg: 20 years of libtorrent
33:25
SwedenCpp
Рет қаралды 589
Henrik Fransson: When software kills
39:23
SwedenCpp
Рет қаралды 532
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,3 МЛН