Git Product home page Git Product logo

Comments (8)

yhilem avatar yhilem commented on July 22, 2024

Hi team,

FYI : The Benefits of Exposing Microservices in WSO2 API Manager : http://wso2.com/library/articles/2016/10/article-the-benefits-of-exposing-microservices-in-wso2-api-manager/

Is it possible for APIM Gateway to gets services locations from the service registry (Eureka, Apache Zookeeper, Consul, Etcd ...) ?

Thanks.

from product-apim.

chamilaadhi avatar chamilaadhi commented on July 22, 2024

You won't be able to do it using out of the box API manager. But I think you could create a custom mediator and custom sequence and achieve this.[1]

This blog post[1] might be helpful (the blog addresses a different scenario. but you could use same method for your scenario). In this, the backend url is resolved using a mediator and some other parameters. You could use that kind of mediator to get the service urls and build the backend url

[1] https://docs.wso2.com/display/AM200/Adding+Mediation+Extensions
[2] http://nuwanzone.blogspot.com/2015/03/api-gateways-with-dedicated-back-ends.html

Regards
Chamila

from product-apim.

yhilem avatar yhilem commented on July 22, 2024

Thank you.
spring-cloud-netflix-sidecar (https://github.com/spring-cloud/spring-cloud-netflix/tree/master/spring-cloud-netflix-sidecar) seems also a viable solution :

from product-apim.

yhilem avatar yhilem commented on July 22, 2024

Hi Team,
With the future major version based on C5 and MSF4J, do you have any idea how to do it?
Our stack is based on Spring Cloud and we need to use WSO2 APIM Gateway instead of Zuul (Spring Cloud Netflix).
Thank you.

from product-apim.

uvindra avatar uvindra commented on July 22, 2024

Sorry for the delay in replying.

The C5 based APIM product will ship with the powerful ballerina integration language[1]. This will allow you to implement the logic required to make a call to a service registry and retrieve the actual service that needs to be called.

[1] http://ballerinalang.org/

from product-apim.

harsha89 avatar harsha89 commented on July 22, 2024

Answered hence closing

from product-apim.

yhilem avatar yhilem commented on July 22, 2024

Here is a very interesting example :
Tuesday, October 10, 2017
WSO2 API Manager with Consul for Dynamic endpoints in distributed deployment
https://shammijayasinghe.blogspot.fr/2017/10/wso2-api-manager-with-cosul-for-dynamic.html

Thanks
Youcef HILEM

from product-apim.

adramazany avatar adramazany commented on July 22, 2024

hi
It's also my problem!
but solution in the https://shammijayasinghe.blogspot.fr/2017/10/wso2-api-manager-with-cosul-for-dynamic.html article is not good
because It does not use endpoint and then lose many features of endpoints eg: failover,circuit breaker, ....
thanks yhilem for this issue

from product-apim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.