gRPC Go for Professionals


Book Description

Build robust, production-ready microservices in gRPC Go to enhance the scalability and efficiency of your APIs in real-world applications Purchase of the print or Kindle book includes a free PDF eBook Key Features Discover essential guidelines to steer clear of pitfalls when designing and evolving your gRPC services Develop your understanding of advanced gRPC concepts such as authentication and security Put your knowledge into action as you build, test, and deploy a TODO list microservice Book Description In recent years, the popularity of microservice architecture has surged, bringing forth a new set of requirements. Among these, efficient communication between the different services takes center stage, and that's where gRPC shines. This book will take you through creating gRPC servers and clients in an efficient, secure, and scalable way. However, communication is just one aspect of microservices, so this book goes beyond that to show you how to deploy your application on Kubernetes and configure other tools that are needed for making your application more resilient. With these tools at your disposal, you'll be ready to get started with using gRPC in a microservice architecture. In gRPC Go for Professionals, you'll explore core concepts such as message transmission and the role of Protobuf in serialization and deserialization. Through a step-by-step implementation of a TODO list API, you'll see the different features of gRPC in action. You'll then learn different approaches for testing your services and debugging your API endpoints. Finally, you'll get to grips with deploying the application services via Docker images and Kubernetes. What you will learn Understand the different API endpoints that gRPC lets you write Discover the essential considerations when writing your Protobuf files Compile Protobuf code with protoc and Bazel for efficient development Gain insights into how advanced gRPC concepts work Grasp techniques for unit testing and load testing your API Get to grips with deploying your microservices with Docker and Kubernetes Discover tools for writing secure and efficient gRPC code Who this book is for Whether you're interested in microservices or looking to use gRPC in your product, this book is for you. To fully benefit from its contents, you'll need a solid grasp of Go programming and using a terminal. If you're already familiar with gRPC, this book will help you to explore the different concepts and tools in depth.




GRPC Go for Professionals: Implement, Test, and Deploy Production-grade Microservices


Book Description

Build robust, production-ready microservices in gRPC Go to enhance the scalability and efficiency of your APIs in real-world applications Purchase of the print or Kindle book includes a free PDF eBook Key Features: Discover essential guidelines to steer clear of pitfalls when designing and evolving your gRPC services Develop your understanding of advanced gRPC concepts such as authentication and security Put your knowledge into action as you build, test, and deploy a TODO list microservice Book Description: In recent years, the popularity of microservice architecture has surged, bringing forth a new set of requirements. Among these, efficient communication between the different services takes center stage, and that's where gRPC shines. This book will take you through creating gRPC servers and clients in an efficient, secure, and scalable way. However, communication is just one aspect of microservices, so this book goes beyond that to show you how to deploy your application on Kubernetes and configure other tools that are needed for making your application more resilient. With these tools at your disposal, you'll be ready to get started with using gRPC in a microservice architecture. In gRPC Go for Professionals, you'll explore core concepts such as message transmission and the role of Protobuf in serialization and deserialization. Through a step-by-step implementation of a TODO list API, you'll see the different features of gRPC in action. You'll then learn different approaches for testing your services and debugging your API endpoints. Finally, you'll get to grips with deploying the application services via Docker images and Kubernetes. What You Will Learn: Understand the different API endpoints that gRPC lets you write Discover the essential considerations when writing your Protobuf files Compile Protobuf code with protoc and Bazel for efficient development Gain insights into how advanced gRPC concepts work Grasp techniques for unit testing and load testing your API Get to grips with deploying your microservices with Docker and Kubernetes Discover tools for writing secure and efficient gRPC code Who this book is for: Whether you're interested in microservices or looking to use gRPC in your product, this book is for you. To fully benefit from its contents, you'll need a solid grasp of Go programming and using a terminal. If you're already familiar with gRPC, this book will help you to explore the different concepts and tools in depth.




gRPC: Up and Running


Book Description

Get a comprehensive understanding of gRPC fundamentals through real-world examples. With this practical guide, you’ll learn how this high-performance interprocess communication protocol is capable of connecting polyglot services in microservices architecture, while providing a rich framework for defining service contracts and data types. Complete with hands-on examples written in Go, Java, Node, and Python, this book also covers the essential techniques and best practices to use gRPC in production systems. Authors Kasun Indrasiri and Danesh Kuruppu discuss the importance of gRPC in the context of microservices development.




Building Microservices with Go


Book Description

Your one-stop guide to the common patterns and practices, showing you how to apply these using the Go programming language About This Book This short, concise, and practical guide is packed with real-world examples of building microservices with Go It is easy to read and will benefit smaller teams who want to extend the functionality of their existing systems Using this practical approach will save your money in terms of maintaining a monolithic architecture and demonstrate capabilities in ease of use Who This Book Is For You should have a working knowledge of programming in Go, including writing and compiling basic applications. However, no knowledge of RESTful architecture, microservices, or web services is expected. If you are looking to apply techniques to your own projects, taking your first steps into microservice architecture, this book is for you. What You Will Learn Plan a microservice architecture and design a microservice Write a microservice with a RESTful API and a database Understand the common idioms and common patterns in microservices architecture Leverage tools and automation that helps microservices become horizontally scalable Get a grounding in containerization with Docker and Docker-Compose, which will greatly accelerate your development lifecycle Manage and secure Microservices at scale with monitoring, logging, service discovery, and automation Test microservices and integrate API tests in Go In Detail Microservice architecture is sweeping the world as the de facto pattern to build web-based applications. Golang is a language particularly well suited to building them. Its strong community, encouragement of idiomatic style, and statically-linked binary artifacts make integrating it with other technologies and managing microservices at scale consistent and intuitive. This book will teach you the common patterns and practices, showing you how to apply these using the Go programming language. It will teach you the fundamental concepts of architectural design and RESTful communication, and show you patterns that provide manageable code that is supportable in development and at scale in production. We will provide you with examples on how to put these concepts and patterns into practice with Go. Whether you are planning a new application or working in an existing monolith, this book will explain and illustrate with practical examples how teams of all sizes can start solving problems with microservices. It will help you understand Docker and Docker-Compose and how it can be used to isolate microservice dependencies and build environments. We finish off by showing you various techniques to monitor, test, and secure your microservices. By the end, you will know the benefits of system resilience of a microservice and the advantages of Go stack. Style and approach The step-by-step tutorial focuses on building microservices. Each chapter expands upon the previous one, teaching you the main skills and techniques required to be a successful microservice practitioner.




Go Programming - From Beginner to Professional


Book Description

Harness the power of Go through hands-on coding examples, covering basic to advanced topics like modules, database interfacing, RESTful APIs, concurrency, and beyond Key Features Leverage Go's standard library through practical examples and simplify development tasks using best practices Master effective idiomatic Go syntax, including variables, functions, and loops, to handle data Build fully functional web applications with capabilities such as database connectivity and RESTful API creation Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionGo Programming – From Beginner to Professional is a comprehensive guide that takes your proficiency in the Go programming language from novice to expert. Starting with fundamental concepts, this book covers variables, command-line tools, and working with data before delving into advanced concepts, including error handling, interfaces, and generics, harnessing Go’s latest features through hands-on exercises. Along the way, you’ll learn to structure projects using Go modules, manage packages effectively, and master debugging techniques. As you progress, you’ll get to grips with practical application-centric aspects such as command-line programming, file manipulation, and working with SQL databases. Additionally, the book explores web server development, RESTful APIs, and utilizing the Go HTTP client to interact with web applications. Further enhancing your Go skills, you’ll learn concurrent programming, testing methodologies, Go tools, and how to deploy applications in the cloud. Throughout the book, you’ll uncover Go’s hidden gems and gain insights into time manipulation, best practices, and more. By the end of this book, you’ll have worked through practical exercises and activities that’ll equip you with the knowledge and skills needed to excel as a proficient Go developer, primed for success in real-world projects.What you will learn Understand the Go syntax and apply it proficiently to handle data and write functions Debug your Go code to troubleshoot development problems Safely handle errors and recover from panics Implement polymorphism using interfaces and gain insight into generics Work with files and connect to popular external databases Create an HTTP client and server and work with a RESTful web API Use concurrency to design efficient software Use Go tools to simplify development and improve your code Who this book is for Designed for both complete beginners in Go as well as professionals transitioning from another programming language, this book equips developers with skills needed to build real-world projects and launch their career in Go. With a step-by-step approach, beginners can grasp Go fundamentals even without prior programming experience, and gradually advance to idiomatic Go best practices, exploring the latest features of the language.




System Programming Essentials with Go


Book Description

Go beyond the web, learn system programming with Go, and build efficient, secure applications Key Features Get to grips with system programming concepts in Go with application examples Gain expert guidance on essential topics like file operations, process management, and network programming Learn how to develop modern, functional applications from scratch Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionAlex Rios, a seasoned Go developer and active community builder, shares his 15 years of expertise in designing large-scale systems through this book. It masterfully cuts through complexity, enabling you to build efficient and secure applications with Go's streamlined syntax and powerful concurrency features. In this book, you’ll learn how Go, unlike traditional system programming languages (C/C++), lets you focus on the problem by prioritizing readability and elevating developer experience with features like automatic garbage collection and built-in concurrency primitives, which remove the burden of low-level memory management and intricate synchronization. Through hands-on projects, you'll master core concepts like file I/O, process management, and inter-process communication to automate tasks and interact with your system efficiently. You'll delve into network programming in Go, equipping yourself with the skills to build robust, distributed applications. This book goes beyond the basics by exploring modern practices like logging and tracing for comprehensive application monitoring, and advance to distributed system design using Go to prepare you to tackle complex architectures. By the end of this book, you'll emerge as a confident Go system programmer, ready to craft high-performance, secure applications for the modern world.What you will learn Understand the fundamentals of system programming using Go Grasp the concepts of goroutines, channels, data races, and managing concurrency in Go Manage file operations and inter-process communication (IPC) Handle USB drives and Bluetooth devices and monitor peripheral events for hardware automation Familiarize yourself with the basics of network programming and its application in Go Implement logging, tracing, and other telemetry practices Construct distributed cache and approach distributed systems using Go Who this book is for This book is for software engineers looking to expand their understanding of system programming concepts. Professionals with a coding foundation seeking profound knowledge of system-level operations will also greatly benefit. Additionally, individuals interested in advancing their system programming skills, whether experienced developers or those transitioning to the field, will find this book indispensable.




Protocol Buffers Handbook


Book Description

Delve into Google Protobuf with the help of practical examples and exercises for streamlined communication and seamless integration with gRPC Key Features Encode and decode complex data structures, enhancing data interchange efficiency across systems Understand Protobuf by mastering the syntax, schema evolution, customizations, and more Integrate Protobuf into your preferred language ecosystem, ensuring interoperability and effective collaboration Purchase of the print or Kindle book includes a free PDF eBook Book DescriptionExplore how Protocol Buffers (Protobuf) serialize structured data and provides a language-neutral, platform-neutral, and extensible solution. With this guide to mastering Protobuf, you'll build your skills to effectively serialize, transmit, and manage data across diverse platforms and languages. This book will help you enter the world of Protocol Buffers by unraveling the intricate nuances of Protobuf syntax and showing you how to define complex data structures. As you progress, you’ll learn schema evolution, ensuring seamless compatibility as your projects evolve. The book also covers advanced topics such as custom options and plugins, allowing you to tailor validation processes to your specific requirements. You’ll understand how to automate project builds using cutting-edge tools such as Buf and Bazel, streamlining your development workflow. With hands-on projects in Go and Python programming, you’ll learn how to practically apply Protobuf concepts. Later chapters will show you how to integrate data interchange capabilities across different programming languages, enabling efficient collaboration and system interoperability. By the end of this book, you’ll have a solid understanding of Protobuf internals, enabling you to discern when and how to use and redefine your approach to data serialization.What you will learn Focus on efficient data interchange with advanced serialization techniques Master Protocol Buffers syntax and schema evolution Perform custom validation via Protoc plugins for precise data integrity Integrate languages seamlessly for versatile system development Automate project building with Buf and Bazel Get to grips with Go and Python integration for real-world Protobuf applications Streamline collaboration through system interoperability with Protobuf Who this book is for This book is for software developers, from novices to experienced programmers, who are interested in harnessing the power of Protocol Buffers. It's particularly valuable for those seeking efficient data serialization solutions for APIs, microservices, and data-intensive applications. The content covered in this book accommodates diverse programming backgrounds, offering essential knowledge to both beginners and seasoned developers.




Mastering Go


Book Description

Publisher's Note: This edition from 2019 is outdated and is not compatible with the latest version of Go. A new third edition, updated for 2021 and featuring the latest in Go programming, has now been published. Key Features • Second edition of the bestselling guide to advanced Go programming, expanded to cover machine learning, more Go packages and a range of modern development techniques • Completes the Go developer’s education with real-world guides to building high-performance production systems • Packed with practical examples and patterns to apply to your own development work • Clearly explains Go nuances and features to remove the frustration from Go development Book Description Often referred to (incorrectly) as Golang, Go is the high-performance systems language of the future. Mastering Go, Second Edition helps you become a productive expert Go programmer, building and improving on the groundbreaking first edition. Mastering Go, Second Edition shows how to put Go to work on real production systems. For programmers who already know the Go language basics, this book provides examples, patterns, and clear explanations to help you deeply understand Go’s capabilities and apply them in your programming work. The book covers the nuances of Go, with in-depth guides on types and structures, packages, concurrency, network programming, compiler design, optimization, and more. Each chapter ends with exercises and resources to fully embed your new knowledge. This second edition includes a completely new chapter on machine learning in Go, guiding you from the foundation statistics techniques through simple regression and clustering to classification, neural networks, and anomaly detection. Other chapters are expanded to cover using Go with Docker and Kubernetes, Git, WebAssembly, JSON, and more. If you take the Go programming language seriously, the second edition of this book is an essential guide on expert techniques. What you will learn • Clear guidance on using Go for production systems • Detailed explanations of how Go internals work, the design choices behind the language, and how to optimize your Go code • A full guide to all Go data types, composite types, and data structures • Master packages, reflection, and interfaces for effective Go programming • Build high-performance systems networking code, including server and client-side applications • Interface with other systems using WebAssembly, JSON, and gRPC • Write reliable, high-performance concurrent code • Build machine learning systems in Go, from simple statistical regression to complex neural networks Who this book is for Mastering Go, Second Edition is for Go programmers who already know the language basics, and want to become expert Go practitioners. Table of Contents • Go and the Operating System • Understanding Go Internals • Working with Basic Go Data Types • The Uses of Composite Types • How to Enhance Go Code with Data Structures • What You Might Not Know About Go Packages and functions • Reflection and Interfaces for All Seasons • Telling a Unix System What to Do • Concurrency in Go: Goroutines, Channels, and Pipelines • Concurrency in Go: Advanced Topics • Code Testing, Optimization, and Profiling • The Foundations of Network Programming in Go • Network Programming: Building Your Own Servers and Clients • Machine Learning in Go Review "Mastering Go - Second Edition is a must-read for developers wanting to expand their knowledge of the language or wanting to pick it up from scratch" -- Alex Ellis - Founder of OpenFaaS Ltd, CNCF Ambassador




Mastering Go


Book Description

Master key features of Go, including advanced concepts like concurrency and working with JSON, to create and optimize real-world services, network servers, and clients Key FeaturesThis third edition of the bestselling guide to advanced Go programming has been overhauled and expanded to cover RESTful servers, the WebSocket protocol, and Go genericsUse real-world exercises to build high-performance network servers and powerful command line utilitiesPacked with practical examples and utilities to apply to your own development work and administrative tasksGet clear explanations about Go nuances and features to simplify Go developmentBook Description Mastering Go is the essential guide to putting Go to work on real production systems. This freshly updated third edition includes topics like creating RESTful servers and clients, understanding Go generics, and developing gRPC servers and clients. Mastering Go was written for programmers who want to explore the capabilities of Go in practice. As you work your way through the chapters, you'll gain confidence and a deep understanding of advanced Go concepts, including concurrency and the operation of the Go Garbage Collector, using Go with Docker, writing powerful command-line utilities, working with JavaScript Object Notation (JSON) data, and interacting with databases. You'll also improve your understanding of Go internals to optimize Go code and use data types and data structures in new and unexpected ways. This essential Go programming book will also take you through the nuances and idioms of Go with exercises and resources to fully embed your newly acquired knowledge. With the help of Mastering Go, you'll become an expert Go programmer by building Go systems and implementing advanced Go techniques in your projects. What you will learnUse Go in productionWrite reliable, high-performance concurrent codeManipulate data structures including slices, arrays, maps, and pointersDevelop reusable packages with reflection and interfacesBecome familiar with generics for effective Go programmingCreate concurrent RESTful servers, and build gRPC clients and serversDefine Go structures for working with JSON dataWho this book is for You'll need to know the basics of Go before you get started with this book, but beyond that, anyone can sink their teeth into it. It's written primarily for Go programmers who have a bit of experience with the language and want to become expert practitioners.




Black Hat Go


Book Description

Like the best-selling Black Hat Python, Black Hat Go explores the darker side of the popular Go programming language. This collection of short scripts will help you test your systems, build and automate tools to fit your needs, and improve your offensive security skillset. Black Hat Go explores the darker side of Go, the popular programming language revered by hackers for its simplicity, efficiency, and reliability. It provides an arsenal of practical tactics from the perspective of security practitioners and hackers to help you test your systems, build and automate tools to fit your needs, and improve your offensive security skillset, all using the power of Go. You'll begin your journey with a basic overview of Go's syntax and philosophy and then start to explore examples that you can leverage for tool development, including common network protocols like HTTP, DNS, and SMB. You'll then dig into various tactics and problems that penetration testers encounter, addressing things like data pilfering, packet sniffing, and exploit development. You'll create dynamic, pluggable tools before diving into cryptography, attacking Microsoft Windows, and implementing steganography. You'll learn how to: Make performant tools that can be used for your own security projects Create usable tools that interact with remote APIs Scrape arbitrary HTML data Use Go's standard package, net/http, for building HTTP servers Write your own DNS server and proxy Use DNS tunneling to establish a C2 channel out of a restrictive network Create a vulnerability fuzzer to discover an application's security weaknesses Use plug-ins and extensions to future-proof productsBuild an RC2 symmetric-key brute-forcer Implant data within a Portable Network Graphics (PNG) image. Are you ready to add to your arsenal of security tools? Then let's Go!