Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Data Serialization in C++ using FlatBuffers
Rating: 4.6 out of 5(14 ratings)
106 students

Data Serialization in C++ using FlatBuffers

Learn how to save data or send it over the network in the most efficient way and as an alternative to gRPC's ProtoBuf
Created byHristo Iliev
Last updated 3/2024
English

What you'll learn

  • How to use serialize data
  • How to create FlatBuffers
  • The difference between Binary and JSON files
  • Writing efficient modern C++ code
  • The FlatBuffers schema language in detail

Course content

6 sections32 lectures1h 24m total length
  • Promo1:54

    Learn how to serialize data with FlatBuffers, a lightweight binary serialization solution by Google, including how to write and evolve FlatBuffers schemas and leverage binary serialization benefits.

  • Welcome3:52

    Welcome to a course introduction that guides you on navigating the material, accessing support, and using FAQs and Q&A to get help quickly, with lifetime access and a certificate.

  • FAQ0:07
  • Course Overview1:05

    Begin by setting up the project, installing IDEs and dependencies, and building a Hello, world program. Learn serialization with built-in C++ features and the flatbuffers library and schema language.

Requirements

  • Basic C++ knowledge
  • Basic understanding of OOP

Description

Welcome

In this bite-sized course you will learn what data serialization is and how to do it properly. Data serialization is crucial for various tasks. It is essential for web developers who need to transmit data over the network. It is also important for desktop applications and games where the ability to save and retrieve settings or game saves is necessary.

In any of the above cases you would like to have a fast method of preparing data for being sent and also read back on the other side. So I will introduce binary serialization and its benefits compared to the more widespread JSON or XML alternatives.

FlatBuffers

This library is developed by Google and is a really efficient mechanism for serializing data. It is one of the two libraries available that are really popular, and the second one is also developed by Google and is called ProtoBuf, which is used mostly for their other technology called gRPC. The FlatBuffers library is more lightweight and versatile, though, and you can use it for so much more than ProtoBuf.

I will be teaching the FlatBuffers schema language for most of this course. But a lot of the ideas taken from FlatBuffers are also applicable to ProtoBuf and gRPC communication. You will also be able to compile FlatBuffers for other languages as well and not just for C++—so you can have a C++ server and an EcmaScript client, for example.


This course is primarily taught on the Windows OS, but the knowledge gained can easily translate into other operating systems as well.

Who this course is for:

  • C++ Programmers