8/18/2023 0 Comments Grpc windows cmake![]() ![]() The necessity to adjust our data and event model to REST + CRUD, which is often too hard.protocol – uncompressed headers, the absence of proper two-way connection, inefficient use of OS resources, extra traffic, unwanted delays. Having a closer look will tell us, that REST is becoming CRUD in 95% of cases. Of course, there are different standards, but about three fourths of client-server communication is covered by it. The first one we are likely to come across is REST + HTTP/1.1. Let’s look at the standards which exist today. This article analyses why this standard, unlike the previous “14”, is likely to conquer the world (or at least a part of it), instructs on how to build gRPC for Windows + Visual Studio (the official documentation misses out about 5 vital steps, which are crucial for the assembly), and shows how to write a simple service and a client, which will exchange requests and responses. Hence, here comes gRPC – a new framework for remote procedure call by Google. Taking somebody else’s standard and, therefore, saying “we could not come up with a better one” – does not look like Google at all. From the perspective of software engineering in the 21st century, it is unwise to continue transferring petabytes of data using the old inefficient HTTP+REST and to lose money on each byte. And it is clear why Google has done that. So, just as the comics goes, Google comes along and announces that it has finally created another RPC standard – the last and the best one. NET Remoting, contemporary REST and AMQP (it’s true, that some of the things mentioned are not formally RPC, and there has been some discussion about the terminology, but all of the above mentioned are used as RPC, and if something looks like a duck, swims like a duck, and quacks like a duck, – it can be called a duck). The situation with RPC today reminds of the famous comic strip about standards – much has been done in this area: ancient DCOM and Cobra, strange SOAP and. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |