#From nethttp To Fiber

33 messages · Page 1 of 1 (latest)

abstract fiber
#

Hello guys, i just want somebody to guide me through this
How can i change this net/http connection script to be using Go fiber?Thank you ^.^

keen acorn
abstract fiber
#

i see

#

And i can't use it in my use case then 🤔

keen acorn
#

you cant use orange 🍊 to fix a hole on the roof, yes.

abstract fiber
#

Good example lmfao

#

What about fasthttp, whould that be helpful ? seems like its the only option

keen acorn
#

fiber use fasthttp.
fasthttp does provide http client. but it only support http1 protocol, which is slower and less efficient that http2.

ember girder
#

Why don't you want net/http?

#

Did you get tricked by cool benchmark graphs?

keen acorn
#

also fasthttp has very different interface. so you may need to learn all over again.

abstract fiber
abstract fiber
ember girder
#

It's like 99.9% your infrastructure speed, latency, distance from target

atomic lintel
ember girder
keen acorn
abstract fiber
#

What do you guys suggest to get faster response and faster benchmarks if its not net/http

#

And if you agree on net/http how can i get the most of it

ember girder
#

What are you trying to optimize? Are you having speed issues?

abstract fiber
#

Yeah i'm having a bit of a speed issues tbh

keen acorn
#

about faster, will you be able to reach that limit? where the different really matter.

#

you most likely wont spawn thousands of concurrent http request.

abstract fiber
#

Well its about the delay, i use thrift if you are familliar with it. Which has bunch of delays that's pretty tricky to avoid, so i thought a faster connection could help with that 🤔

atomic lintel
ember girder
#

IDK it's like trying to run faster by tying your shoes differently. if you're not serving stuff, and don't have thousands of concurent requests, i think net/http is good. Your infra and your destination's infra is responsible for the response speed

abstract fiber
#

i see

#

Then its not the connection at all

atomic lintel
#

what do you think we can use to speed up thrift

ember girder
#

Idk what thrift is

atomic lintel
#

like apache

craggy sparrow
#

I am 100% sure net/http is not the bottleneck in your system