• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Head First Go: Building concurrent web applications in Go

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Two questions:
a. How is the support for writing concurrency apps in Go? Does it have a package like java.util.concurrent
b. How easy or hard is it to create an application server in GO? Does it have something parallel to Tomcat, Apache, JBOSS etc
Staff note (Bear Bibeault) :

In the future, please create a separate topic for each question rather than putting multiple questions into a single topic. Thanks.

 
Author
Posts: 22
5
Mac Ruby Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

swaroop rath wrote:
a. How is the support for writing concurrency apps in Go? Does it have a package like java.util.concurrent



Far better than that; concurrency is built into the language itself! Goroutines make creating a concurrent process as simple as calling a function. And unlike threads, you can create thousands of concurrent goroutines and still maintain excellent performance. Go also includes channels which allow goroutines to communicate without relying on shared memory. Concurrency is a major selling point for Go.

swaroop rath wrote:
b. How easy or hard is it to create an application server in GO? Does it have something parallel to Tomcat, Apache, JBOSS etc



Easy! The standard "net/http" package includes a highly performant web server. There's one tutorial here, and another in the last two chapters of Head First Go if you're looking for something more approachable.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic