Skip to content

🚀 v3 Request: Add Throttle and Timeout with retry in client #2038

@sujit-baniya

Description

@sujit-baniya

Feature Description

While making requests with client, it might be essential to throttle the request based on the API Server bandwidth. So adding throttle Per Host.

Also API Server might take more time for request to complete. So timeout is required in this case. Since Retry is already implemented, timeout can be used with Retry

Additional Context (optional)

No response

Code Snippet (optional)

package main

import "github.com/gofiber/fiber/v2"
import "log"

func main() {
  app := fiber.New()

  // An example to describe the feature

  log.Fatal(app.Listen(":3000"))
}

Checklist:

  • I agree to follow Fiber's Code of Conduct.
  • I have checked for existing issues that describe my suggestion prior to opening this one.
  • I understand that improperly formatted feature requests may be closed without explanation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions