Re: [go-nuts] How to increase concurrent users in net/http

2019-01-14 Thread Matt Ho
Would you mind also posting the network tuning parameters you're using along with the os? I know that when I do perf testing for go on linux, I typically need to update a number of tcp related kernel parameters before I get meaningful numbers. M -- You received this message because you are

Re: [go-nuts] performance optimization

2019-01-14 Thread Matt Ho
Can you describe what task it is that needs to be updated every microsecond? It seems like there should be a better to resolve the underlying need. M -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

[go-nuts] Re: Inheritance and OOP: Go one better

2018-02-13 Thread Matt Ho
I’m not sure how an interface doesn’t satisfy what you’re looking for. Can you describe your use case in a little more detail? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it,

Re: [go-nuts] Customized Go template FuncMap example

2017-07-15 Thread Matt Ho
Given that text and html templates are separate calls anyways, why not just make separate calls for your custom funcmap? For example: package template import ( html "html/template" text "text/template" ) func Html(name string, fm html.FuncMap) *html.Template { return

[go-nuts] [ANN] nats-proxy - http in the front; NATS in the back, microservice library for NATS

2017-06-28 Thread Matt Ho
https://github.com/savaki/nats-proxy http in the front; NATS in the back nats-proxy provides an HTTP gateway that simplifies service discovery by using NATS as the transport layer between services. client --[http]--> gateway --[nats]--> service *Start the API Gateway* // Start the Gateway

[go-nuts] Re: go-swagger dynamic API creation

2017-03-27 Thread Matt Ho
Before writing github.com/savaki/swag, I gave goswagger a try. I think goswagger is a fantastic library with lots of useful features. However, for my own use, I found things like: var findTodos = runtime.OperationHandlerFunc(func(params interface{}) (interface{}, error) {

[go-nuts] Re: Project architecture

2017-03-11 Thread Matt Ho
If you're just starting out the project, by all means start with the monolith where everything is together. If you decide it's necessary, over time you can split out the project into what you've discovered you need. Trying to abstract the components you think you'll need too early is a good

Re: [go-nuts] Do Go Routines use continuations to allow yelding?

2016-11-25 Thread Matt Ho
Goroutines are conceptually very similar to threads, but much lighter weight. They are far cheaper than system threads to run. It's not uncommon for go apps to have 50k or more goroutines running. -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] Re: A proposal for generic in go

2016-06-21 Thread Matt Ho
I think I have to agree with most of the posters here about generics. In theory, I miss them. However, in practice, I find that there are usually only a few times during the course of a project where I wish I had generics. And then after writing a few lines of code to do what the generic