Programming Backend with Go
$29.99
Minimum price
$29.99
Suggested price

Programming Backend with Go

Build robust and scalable backends for your applications using the efficient and powerful tools of the Go ecosystem

About the Book

This book takes its time to go over every important aspect of backend programming, from the fundamentals to more advanced techniques, so that you can become experts in Go scripting and all the things Go can do. Quickly introducing readers to Go and its ecosystem, the book walks them through installing the language and creating a development environment with Visual Studio Code. Next, it takes a baby step into learning the basics of building web servers with the net/http package, going over topics like routing, handling various HTTP methods, and the structures of requests and responses. Path variables, regex-based routing, custom handlers, and middleware are some of the advanced routing topics covered, which uses the robust gorilla/mux package. After introducing session and cookie management, the book moves on to user authentication, covering topics such as OAuth2 integration, JWT for secure APIs, and more.

The book then teaches various aspects of database integration with GORM, covering topics such as connecting to SQL databases, performing CRUD operations, managing migrations, and handling transactions and concurrency control. The Gin framework for designing and implementing microservices, REST and gRPC for inter-service communication, and Kubernetes for containerizing applications are also covered in detail. Also covered is message brokering with Apache Kafka and NSQ for asynchronous systems, which guarantees resilient systems and efficient message delivery. Secure coding practices, HTTPS with crypto/tls, avoiding SQL injections and XSS attacks, and configuration management with Viper are also one of the main goal of the book.

Last but not least, the book covers testing and debugging with tools such as Delve, Testify, and GoMock. It then teaches readers through various deployment strategies, such as blue-green, canary, and rolling deployments with AWS CodeDeploy. Utilizing Go's robust features and clean scripting capabilities, this book provides you with the necessary knowledge and skills to develop secure, scalable, and resilient backend systems.

Key Learnings

  • Get to know Go's ecosystem and tools to set up and configure backend development efficiently.
  • Web servers can be easily built and managed using Go's net/http package for dynamic content delivery.
  • Use gorilla/mux to implement advanced routing techniques for flexible URL handling.
  • Implement strong API security with user authentication using OAuth2 and JWT.
  • Make use of GORM's advanced capabilities of migrations and transactions, to integrate SQL databases.
  • Use Gin, Kubernetes, and gRPC to build and launch scalable microservices.
  • Make use of NSQ and Kafka for asynchronous processing.
  • Prevent frequent vulnerabilities of SQL injection and XSS attacks.
  • Use Testify, GoMock, and Delve to streamline testing and debugging.
  • Use AWS CodeDeploy with blue-green and canary deployment strategies to deploy applications.

Table of Content

  1. Understanding Go for Backend Development
  2. Building a Basic Web Server with net/http
  3. Advanced Routing with gorilla/mux
  4. User Authentication with Oauth2 and JWT
  5. Integrating Databases with GORM
  6. Creating Microservices in Go
  7. Message Brokering with NSQ and Apache Kafka
  8. Securing Go Applications
  9. Testing and Debugging Go Applications
  10. Deploying Go Applications
  • Share this book

  • Categories

    • Amazon Web Services
    • Go
    • Messaging
    • Networking
    • Programming Cookbooks
  • Feedback

    Email the Author(s)

About the Editor

GitforGits | Asian Publishing House
GitforGits | Asian Publishing House

GitforGits is an Asian publishing house where knowledgeable experts and open-source contributors collaborate to disseminate new ideas and innovations. We plan to provide niche, original, and useful content; we are a self-funded, independent publisher. We have books spanning the fields of computer science, cybersecurity, cloud computing, devops, deep learning, hardware programming, networking, the Internet of Things, and any other area of technology to which we can satisfactorily contribute.

Bundles that include this book

$89.97
Bought separately
$88.99
Bundle Price

Table of Contents

Table of Content
  1. Understanding Go for Backend Development
  2. Building a Basic Web Server with net/http
  3. Advanced Routing with gorilla/mux
  4. User Authentication with Oauth2 and JWT
  5. Integrating Databases with GORM
  6. Creating Microservices in Go
  7. Message Brokering with NSQ and Apache Kafka
  8. Securing Go Applications
  9. Testing and Debugging Go Applications
  10. Deploying Go Applications

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub