All Projects → devopsfaith → Krakend

devopsfaith / Krakend

Licence: other
Ultra performant API Gateway with middlewares. A project hosted at The Linux Foundation

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Krakend

lura
Ultra performant API Gateway with middlewares. A project hosted at The Linux Foundation
Stars: ✭ 5,159 (+8.56%)
Mutual labels:  router, api-gateway, proxies, load-balancer, backend-services, gateway-api, krakend
Altair
Lightweight and Robust API Gateway written in Go
Stars: ✭ 34 (-99.28%)
Mutual labels:  microservice, api-gateway, middleware, router, proxies
Ambassador
open source Kubernetes-native API gateway for microservices built on the Envoy Proxy
Stars: ✭ 3,583 (-24.6%)
Mutual labels:  microservice, api-gateway, gateway-api
Kong Docs Cn
微服务 Api 网关 Kong 最新文档中文版
Stars: ✭ 371 (-92.19%)
Mutual labels:  microservice, api-gateway
wolfpacs
WolfPACS is an DICOM load balancer written in Erlang.
Stars: ✭ 1 (-99.98%)
Mutual labels:  router, load-balancer
go-microservices-and-krakend-api-gateway
This is a shopping basket workshop that shows how to use KrakenD API Gateway.
Stars: ✭ 44 (-99.07%)
Mutual labels:  api-gateway, krakend
Frontexpress
An Express.js-Style router for the front-end
Stars: ✭ 263 (-94.47%)
Mutual labels:  middleware, router
networking-icons
Repo containing various networking icons including routers, switches, servers, firewalls, load balancers and more. Icons are provided in png and svg formats.
Stars: ✭ 61 (-98.72%)
Mutual labels:  router, load-balancer
Manba
HTTP API Gateway
Stars: ✭ 3,000 (-36.87%)
Mutual labels:  microservice, api-gateway
Aegis
Serverless Golang deploy tool and framework for AWS Lambda
Stars: ✭ 277 (-94.17%)
Mutual labels:  microservice, api-gateway
Simple Php Router
Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing, with both simplicity and expand-ability in mind.
Stars: ✭ 279 (-94.13%)
Mutual labels:  middleware, router
koa-rest-router
Most powerful, flexible and composable router for building enterprise RESTful APIs easily!
Stars: ✭ 67 (-98.59%)
Mutual labels:  middleware, router
shim
HTTP Handler shim for Go projects running on AWS Lambda
Stars: ✭ 64 (-98.65%)
Mutual labels:  router, api-gateway
api-gateway
Api Gateway for a microservices deployment
Stars: ✭ 31 (-99.35%)
Mutual labels:  microservice, api-gateway
semaphore
Take control of your data, connect with anything, and expose it anywhere through protocols such as HTTP, GraphQL, and gRPC.
Stars: ✭ 74 (-98.44%)
Mutual labels:  api-gateway, gateway-api
Zen
zen is a elegant and lightweight web framework for Go
Stars: ✭ 257 (-94.59%)
Mutual labels:  middleware, router
Rocky
Full-featured, middleware-oriented, programmatic HTTP and WebSocket proxy for node.js
Stars: ✭ 357 (-92.49%)
Mutual labels:  microservice, middleware
Express Gateway
A microservices API Gateway built on top of Express.js
Stars: ✭ 2,583 (-45.64%)
Mutual labels:  microservice, api-gateway
Krakend Ce
KrakenD Community Edition. Make your binary of KrakenD API Gateway
Stars: ✭ 245 (-94.84%)
Mutual labels:  microservice, api-gateway
Fomalhaut
🚀 A Simple API Gateway for Building Security and Flexible Microservices.
Stars: ✭ 272 (-94.28%)
Mutual labels:  microservice, api-gateway

The Lura Project framework

Go Report Card GoDoc CII Best Practices Docker Pulls Slack Widget

An open framework to assemble ultra performance API Gateways with middlewares; formerly known as KrakenD framework, and core service of the KrakenD API Gateway.

Motivation

Consumers of REST API content (specially in microservices) often query backend services that weren't coded for the UI implementation. This is of course a good practice, but the UI consumers need to do implementations that suffer a lot of complexity and burden with the sizes of their microservices responses.

Lura is an API Gateway builder and proxy generator that sits between the client and all the source servers, adding a new layer that removes all the complexity to the clients, providing them only the information that the UI needs. Lura acts as an aggregator of many sources into single endpoints and allows you to group, wrap, transform and shrink responses. Additionally it supports a myriad of middlewares and plugins that allow you to extend the functionality, such as adding Oauth authorization or security layers.

Lura not only supports HTTP(S), but because it is a set of generic libraries you can build all type of API Gateways and proxies, including for instance, an RPC gateway.

Practical Example

A mobile developer needs to construct a single front page that requires data from 4 different calls to their backend services, e.g:

1) api.store.server/products
2) api.store.server/marketing-promos
3) api.users.server/users/{id_user}
4) api.users.server/shopping-cart/{id_user}

The screen is very simple, and the mobile client only needs to retrieve data from 4 different sources, wait for the round trip and then hand pick only a few fields from the response.

What if the mobile could call a single endpoint?

1) lura.server/frontpage/{id_user}

That's something Lura can do for you. And this is how it would look like:

Gateway

Lura would merge all the data and return only the fields you need (the difference in size in the graph).

Visit the Lura Project website for more information.

What's in this repository?

The source code for the Lura project framework. It is designed to work with your own middleware and extend the functionality by using small, independent, reusable components following the Unix philosophy.

Use this repository if you want to build from source your API Gateway or if you want to reuse the components in another application.

If you need a fully functional API Gateway you can download the KrakenD binary for your architecture or build it yourself.

Library Usage

The Lura project is presented as a Go library that you can include in your own Go application to build a powerful proxy or API gateway. In order to get you started several examples of implementations are included in the examples folder.

Of course, you will need Go installed in your system to compile the code.

A ready to use example:

    package main

    import (
        "flag"
        "log"
        "os"

        "github.com/luraproject/lura/config"
        "github.com/luraproject/lura/logging"
        "github.com/luraproject/lura/proxy"
        "github.com/luraproject/lura/router/gin"
    )

    func main() {
        port := flag.Int("p", 0, "Port of the service")
        logLevel := flag.String("l", "ERROR", "Logging level")
        debug := flag.Bool("d", false, "Enable the debug")
        configFile := flag.String("c", "/etc/lura/configuration.json", "Path to the configuration filename")
        flag.Parse()

        parser := config.NewParser()
        serviceConfig, err := parser.Parse(*configFile)
        if err != nil {
            log.Fatal("ERROR:", err.Error())
        }
        serviceConfig.Debug = serviceConfig.Debug || *debug
        if *port != 0 {
            serviceConfig.Port = *port
        }

        logger, _ := logging.NewLogger(*logLevel, os.Stdout, "[LURA]")

        routerFactory := gin.DefaultFactory(proxy.DefaultFactory(logger), logger)

        routerFactory.New().Run(serviceConfig)
    }

Visit the framework overview for more details about the components of the Lura project.

Examples

You can find some implementation examples on this KrakenD repository

  1. gin router
  2. mux router
  3. gorilla router
  4. negroni middlewares
  5. dns srv service discovery
  6. jwt middlewares
  7. httpcache based proxies

Configuration file

Lura config file

Benchmarks

Check out the benchmark results of several Lura components

Contributing

We are always happy to receive contributions. If you have questions, suggestions, bugs please open an issue. If you want to submit the code, create the issue and send us a pull request for review.

Read CONTRIBUTING.md for more information.

Want more?

Enjoy Lura!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].