Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Hands-On Software Engineering with Golang
Hands-On Software Engineering with Golang

Hands-On Software Engineering with Golang: Move beyond basic programming to design and build reliable software with clean code

Arrow left icon
Profile Icon Anagnostopoulos
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.6 (8 Ratings)
Paperback Jan 2020 640 pages 1st Edition
eBook
$9.99 $38.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Anagnostopoulos
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.6 (8 Ratings)
Paperback Jan 2020 640 pages 1st Edition
eBook
$9.99 $38.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$9.99 $38.99
Paperback
$54.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Hands-On Software Engineering with Golang

A Bird's-Eye View of Software Engineering

"Hiring people to write code to sell is not the same as hiring people to design and build durable, usable, dependable software."
- Larry Constantine [6]

Through the various stages of my career, I have met several people that knew how to code; people whose skill level ranged from beginner to, what some would refer to as, guru. All those people had different backgrounds and worked for both start-ups and large organizations. For some, coding was seen as a natural progression from their CS studies, while others turned to coding as part of a career change decision.

Regardless of all these differences, all of them had one thing in common: when asked to describe their current role, all of them used the term software engineer. It is quite a common practice for job candidates to use this term in their CVs as the means to set themselves...

What is software engineering?

Before we dive deeper into this chapter, we need to establish an understanding of some of the basic terms and concepts around software engineering. For starters, how do we define software engineering and in what ways does it differ from software development and programming in general? To begin answering this question, we will start by examining the formal definition of software engineering, as published in IEEE's Standard Glossary of Software Engineering Terminology [7]:

"Software engineering is defined as the application of a systematic, disciplined, quantifiable approach to the development, operation, and maintenance of software."

The main takeaway from this definition is that authoring code is just one of the many facets of software engineering. At the end of the day, any capable programmer can take a well-defined specification and...

Types of software engineering roles

As we discussed in the previous section, software engineering is an inherently complex, multi-stage process. In an attempt to manage this complexity, organizations around the world have invested a lot of time and effort over the years to break the process down into a set of well-defined stages and train their engineering staff to efficiently deal with each stage.

Some software engineers strive to work across all the stages of the Software Development Life Cycle (SDLC), while others have opted to specialize in and master a particular stage of the SDLC. This gave rise to a variety of software engineering roles, each one with a different set of responsibilities and a required set of skills. Let's take a brief look at the most common software engineering roles that you may encounter when working with both small- and large-sized organizations...

A list of software development models that all engineers should know

The software engineering definition from the previous section alludes to the fact that software engineering is a complicated, multi-stage process. In an attempt to provide a formal description of these stages, academia has put forward the concept of the SDLC.

The SDLC is a systematic process for building high-quality software that matches the expectations of the end user or customer while ensuring that the project's cost stays within a reasonable bound.

Over the years, there has been an abundance of alternative model proposals for facilitating software development. The following diagram is a timeline illustrating the years when some of the most popular SDLC models were introduced:

Figure 1: A timeline for the software development models that will be presented in this chapter

In the upcoming sections, we...

Summary

Through the course of this chapter, we briefly discussed the different types of roles that you may encounter when working with companies of various sizes, as well as the special set of skills that each role depends on.

We started by examining a broad list of popular models, methodologies, and frameworks for delivering software, ranging from the traditional models that advocate a top-bottom approach (waterfall, iterative enhancement) to agile models that are better suited for the fast-paced and constantly changing environment that contemporary organizations operate in.

By reaching the end of this chapter, you should have acquainted yourself with the pros and cons of each model and the situations where each model should be applied. I sincerely hope that this knowledge will prove useful the next time you need to decide on which software development model to use for your next...

Questions

  1. What is the definition of software engineering?
  2. What are some of the questions that every SWE should be able to answer?
  3. Compare the role of an SWE and an SRE. What are the key differences between the two roles?
  4. Name some of the deficiencies of the waterfall model. Explain how the iterative enhancement model attempts to address those deficiencies.
  5. What are the most common sources of waste according to the lean development model?
  6. Provide an example where focusing all the optimization efforts on a single step of the development process can have a negative effect on the efficiency of the end-to-end process.
  7. What are the key responsibilities of the PO and the SM in the Scrum framework?
  8. What is the role of retrospectives in Scrum? What topics should the team be discussing and what should be the expected outcome of each retrospective session?
  9. Why are automation and measuring...

Further reading

  1. Anderson, David: Kanban: Successful Evolutionary Change in Your Technology Business: Blue Hole Press, 2010 — ISBN 0984521402 (https://www.worldcat.org/title/kanban-successful-evolutionary-change-in-your-technology-business/oclc/693773272).
  2. Basili, R.; Turner, J.: Iterative Enhancement: A Practical Technique for Software Development. In: IEEE Transactions on Software Engineering Vol. 1 (1975), pp. 390–396.
  1. Beck, Kent; Beedle, Mike; Bennekum, Arie van; Cockburn, Alistair; Cunningham, Ward; Fowler, Martin; Grenning, James; Highsmith, Jim; et al.: Manifesto for Agile Software Development.
  2. Beyer, Betsy; Jones, Chris; Petoff, Jennifer; Murphy, Niall Richard: Site Reliability Engineering: How Google Runs Production Systems. (https://landing.google.com/sre/sre-book/toc/index.html) (https://www.worldcat.org/title/site-reliability-engineering/oclc/1112558638...
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Apply best practices to produce lean, testable, and maintainable Go code to avoid accumulating technical debt
  • Explore Go’s built-in support for concurrency and message passing to build high-performance applications
  • Scale your Go programs across machines and manage their life cycle using Kubernetes

Description

Over the last few years, Go has become one of the favorite languages for building scalable and distributed systems. Its opinionated design and built-in concurrency features make it easy for engineers to author code that efficiently utilizes all available CPU cores. This Golang book distills industry best practices for writing lean Go code that is easy to test and maintain, and helps you to explore its practical implementation by creating a multi-tier application called Links ‘R’ Us from scratch. You’ll be guided through all the steps involved in designing, implementing, testing, deploying, and scaling an application. Starting with a monolithic architecture, you’ll iteratively transform the project into a service-oriented architecture (SOA) that supports the efficient out-of-core processing of large link graphs. You’ll learn about various cutting-edge and advanced software engineering techniques such as building extensible data processing pipelines, designing APIs using gRPC, and running distributed graph processing algorithms at scale. Finally, you’ll learn how to compile and package your Go services using Docker and automate their deployment to a Kubernetes cluster. By the end of this book, you’ll know how to think like a professional software developer or engineer and write lean and efficient Go code.

Who is this book for?

This Golang programming book is for medium to advanced users who want to delve deeper into the best practices of using Golang to build complex distributed systems effectively. Knowledge of Go programming and the basics of software development is required.

What you will learn

  • Understand different stages of the software development life cycle and the role of a software engineer
  • Create APIs using gRPC and leverage the middleware offered by the gRPC ecosystem
  • Discover various approaches to managing package dependencies for your projects
  • Build an end-to-end project from scratch and explore different strategies for scaling it
  • Develop a graph processing system and extend it to run in a distributed manner
  • Deploy Go services on Kubernetes and monitor their health using Prometheus

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jan 24, 2020
Length: 640 pages
Edition : 1st
Language : English
ISBN-13 : 9781838554491
Vendor :
Google
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Jan 24, 2020
Length: 640 pages
Edition : 1st
Language : English
ISBN-13 : 9781838554491
Vendor :
Google
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 158.97
Hands-On Software Architecture with Golang
$54.99
Hands-On High Performance with Go
$48.99
Hands-On Software Engineering with Golang
$54.99
Total $ 158.97 Stars icon
Banner background image

Table of Contents

20 Chapters
Section 1: Software Engineering and the Software Development Life Cycle Chevron down icon Chevron up icon
A Bird's-Eye View of Software Engineering Chevron down icon Chevron up icon
Section 2: Best Practices for Maintainable and Testable Go Code Chevron down icon Chevron up icon
Best Practices for Writing Clean and Maintainable Go Code Chevron down icon Chevron up icon
Dependency Management Chevron down icon Chevron up icon
The Art of Testing Chevron down icon Chevron up icon
Section 3: Designing and Building a Multi-Tier System from Scratch Chevron down icon Chevron up icon
The Links 'R'; Us Project Chevron down icon Chevron up icon
Building a Persistence Layer Chevron down icon Chevron up icon
Data-Processing Pipelines Chevron down icon Chevron up icon
Graph-Based Data Processing Chevron down icon Chevron up icon
Communicating with the Outside World Chevron down icon Chevron up icon
Building, Packaging, and Deploying Software Chevron down icon Chevron up icon
Section 4: Scaling Out to Handle a Growing Number of Users Chevron down icon Chevron up icon
Splitting Monoliths into Microservices Chevron down icon Chevron up icon
Building Distributed Graph-Processing Systems Chevron down icon Chevron up icon
Metrics Collection and Visualization Chevron down icon Chevron up icon
Epilogue Chevron down icon Chevron up icon
Assessments Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.6
(8 Ratings)
5 star 62.5%
4 star 0%
3 star 0%
2 star 12.5%
1 star 25%
Filter icon Filter
Top Reviews

Filter reviews by




MT Oct 04, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A great book on creating scalable distributed systems in Go.
Amazon Verified review Amazon
dsp Mar 26, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book teaches you how to decompose and solve problems efficiently using microservices using golang.It showcases both how intelligently the language is designed (how easy it is to import for example a database, for a small part of platform, or a message queue for another) and also how good abstractions allow you to tackle complexity while maintaining proper code form.
Amazon Verified review Amazon
Oleg Butuzov Aug 01, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I am not the person who left reviews, I am the guy who reaches you on twitter/github/linkedin and thanks for book author. Which I did. Now time to review it?I don't like Packt books. Those are bad (with rare exceptions). This book is an exception I am talking about. It's not selling you some new wisdom, but split already known things (if you are already working in the field) into chewable chunks from the Chef. It's not only theory but also the practical part you will enjoy doing (I did spend some time of my life writing crawlers and spiders - hint, task author tell and mentor through it was a pleasure).Last, but not least - I did enjoyed the language it was written, easy, understandable English. I didn't expect this. I like it.P.S.Author, can you try to explain DDD in a separate book, it's going to be blockbuster!
Amazon Verified review Amazon
Raj Nov 09, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Disclaimer: I received a copy of this book to review.Very good concise introduction for Go. I've read a handful of Go books and this is one of the best introductions.The book targets a broad audience from an amateur and intermediate Go programmers as well as experienced developers in other programming languagesThe author's approach is clear, concise and extremely well organized. Some great examples in the book take the time to show a basic approach and how to grow it into well-formed, concurrent process. With that in mind, that is how the book is organized as well: taking a simplistic approach and growing into a much more sophisticated solution.I recommend this book as a first read that will enable you to understand the day to life life of a Software engineer and learn GoLang from the perspective of a Software Engineer.
Amazon Verified review Amazon
Zoltan G. Mar 03, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
For me it was an instant 'click'. This book isn't simply about learning a programming language or a specific technology. Sure, if you go through the exercises you'll get to know Go Programming Language more intimately, but it also covers essential knowledge that helps through every stage of system design.It tells a story about how things can be built in a way that suits any given scale of operation. It shows common pitfalls and how to avoid them, and introduces engineering practices that ensure that what you create will work, and will be the right architecture for the requirements of your project. Technologies get obsolete quickly and tools are replaced by others but the content of the book stays relevant being a good guide on how to strike the right balance of simplicity and scaling.The reader will be able to go through the life-cycle of a complex project in a way that's likely applicable to most real-life software engineering project. From a simple 'proof of concept' to a large scale distributed system, most evolutionary steps are covered. The examples are detailed and it's worth spending time understanding the reasons behind each level of the design of the example project in the book.I'd recommend the book for engineers who see themselves in decision-making positions perhaps in a startup, maybe even with their own projects.The language of the book is not the simplest, takes a few pages to get used to the precise definitions.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.