Reader small image

You're reading from  Mastering Go - Fourth Edition

Product typeBook
Published inMar 2024
Reading LevelExpert
PublisherPackt
ISBN-139781805127147
Edition4th Edition
Languages
Right arrow
Author (1)
Mihalis Tsoukalos
Mihalis Tsoukalos
author image
Mihalis Tsoukalos

Mihalis Tsoukalos holds a BSc in Mathematics from the University of Patras and an MSc in IT from University College London. His previous books Go Systems Programming and Mastering Go have become must-reads for UNIX and Linux systems professionals. He works as a UNIX systems engineer and a technical author. He enjoys writing technical articles and has written for Sys Admin, MacTech, C/C++ Users Journal, USENIX ;login:, Linux Journal, Linux User and Developer, Linux Format, and Linux Voice. His research interests include time series data mining, time series indexing, and databases.
Read more about Mihalis Tsoukalos

Right arrow

Summary

This chapter was all about the net package, TCP/IP, TCP, and UDP, which implement low-level connections, as well as WebSocket and RabbitMQ.

WebSocket gives us an alternative way of creating services. As a rule of thumb, WebSocket is better when we want to exchange lots of data, and we want the connection to remain open all the time and exchange data in full duplex. However, if we are not sure about what to choose, it is recommended to begin with a TCP/IP service and see how it goes before upgrading it to the WebSocket protocol.

Lastly, RabbitMQ is a rational choice when we want to store and retrieve a large amount of data to an external data store.

Go can help you create all kinds of concurrent servers and clients.

We are now ready to begin developing our own services! The next chapter is about REST APIs, exchanging JSON data over HTTP, and developing RESTful clients and servers—Go is widely used for developing RESTful clients and servers.

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering Go - Fourth Edition
Published in: Mar 2024Publisher: PacktISBN-13: 9781805127147

Author (1)

author image
Mihalis Tsoukalos

Mihalis Tsoukalos holds a BSc in Mathematics from the University of Patras and an MSc in IT from University College London. His previous books Go Systems Programming and Mastering Go have become must-reads for UNIX and Linux systems professionals. He works as a UNIX systems engineer and a technical author. He enjoys writing technical articles and has written for Sys Admin, MacTech, C/C++ Users Journal, USENIX ;login:, Linux Journal, Linux User and Developer, Linux Format, and Linux Voice. His research interests include time series data mining, time series indexing, and databases.
Read more about Mihalis Tsoukalos