From the course: Build a Microservice with Go
Go for microservices - Go Tutorial
From the course: Build a Microservice with Go
Go for microservices
- [Instructor] Since you are here taking this course, I doubt that I need to convince you why Go is a great language for microservice development but let's go ahead and discuss it anyway. One of the primary benefits of Go in general is its simplicity, especially of its syntax. It is considered to be one of the most concise languages that you can use having borrowed its constructs from several other very popular languages. The syntax itself is very clean. There are no unusual characters or structures to its flow control like indentations. The nature of the code and cleanliness of it makes Go easy to read. You won't get lost in definitions and assignments or complex structures. All of this leads to code that's not only easy to write but also easy to maintain. Never underestimate the importance of maintainability when evaluating any language. This all leads to an efficient language to use which in turn yields a rapid development cycle which of course makes it popular for businesses on the move. Go tends to be acclaimed for its speed. Go is fast in just about everything that it does. Compilation of Go code is extremely quick. This allows the developer to make changes and test them in a very rapid succession. Go also compiles to a native executable. This native executable runs fast because there is no virtual machine. When you compile the code, you target the OS it will run on which is highly optimized to run on the system directly. GO does provide garbage collection, but unlike some languages, the GC cycles are very quick as well. Again, increasing the overall speed of the application. Finally, Go is built for concurrent needs of the internet today. Go was created after multicore processors were commonplace. As such, the language facilitates using these processors out of the box in multi-core configuration as opposed to other languages where you may have to wrap it with layers of abstraction to truly utilize the multicore nature of these processors. In addition to multicore utilization, parallel processing threads are very easy to utilize with Go, which is a much needed aspect for modern service development.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.