Skip to content

supersingh05/generator-go-microservice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Go-Microservice generator

Installation

Install Git, node.js, and Go 1.1. The development mode also requires SQLite.

Install Yeoman:

npm install -g yo

Install the Angular-Go-Martini generator:

npm install -g generator-go-microservice

Creating a go service

In a new directory, generate the service:

yo go-microservice

Get the dependencies:

goop install

Run the service:

goop exec go run server.go

Your service will run at http://localhost:9001.

Simple apache Bench results for the 3 Libraries

ab -n 5000 http://localhost:9001/

Echo

Complete requests:      5000
Failed requests:        0
Total transferred:      580000 bytes
HTML transferred:       70000 bytes
Requests per second:    4435.47 [#/sec] (mean)
Time per request:       0.225 [ms] (mean)
Time per request:       0.225 [ms] (mean, across all concurrent requests)
Transfer rate:          502.46 [Kbytes/sec] received

http

Complete requests:      5000
Failed requests:        0
Total transferred:      655000 bytes
HTML transferred:       70000 bytes
Requests per second:    4660.73 [#/sec] (mean)
Time per request:       0.215 [ms] (mean)
Time per request:       0.215 [ms] (mean, across all concurrent requests)
Transfer rate:          596.25 [Kbytes/sec] received

httprouter

Complete requests:      5000
Failed requests:        0
Total transferred:      655000 bytes
HTML transferred:       70000 bytes
Requests per second:    4935.01 [#/sec] (mean)
Time per request:       0.203 [ms] (mean)
Time per request:       0.203 [ms] (mean, across all concurrent requests)
Transfer rate:          631.33 [Kbytes/sec] received

About

yeoman-generator for golang http, httprouter and echo APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.6%
  • Go 47.4%