Giter Site home page Giter Site logo

Comments (12)

markusjura avatar markusjura commented on May 26, 2024

Having a Lagom Descriptor called user and another service that is using the /user route is not possible.

Under ConductR, each Lagom service is accessible under http://:9000/DESCRIPTOR_NAME where DESCRIPTOR_NAME is the name of the Descriptor: https://github.com/lagom/online-auction-java/blob/master/user-api/src/main/java/com/example/auction/user/api/UserService.java#L25

This suffix is necessary so that every service can use the same port 9000.

So you either rename the Descriptor name of the user-api service or the route of webGateway.

from online-auction-java.

ignasi35 avatar ignasi35 commented on May 26, 2024

So you either rename the Descriptor name of the user-api service or ...

Exactly what I did. ;-)

from online-auction-java.

ignasi35 avatar ignasi35 commented on May 26, 2024

Thanks for the detailed explanation!

from online-auction-java.

ignasi35 avatar ignasi35 commented on May 26, 2024

@markusjura why is http://:9000/user even published in the service gateway if that's a private API? I would expect user -> [<list of (ip/port)] to exist in a Service Registry that's only consumable from the private network.

What is the motivation to expose the list of services in http://:9000/<service-name> ?

from online-auction-java.

ignasi35 avatar ignasi35 commented on May 26, 2024

Related to #17

from online-auction-java.

TimMoore avatar TimMoore commented on May 26, 2024

Yeah, what does http://:9000/user even route to? Shouldn't only ACLs declared by the service descriptor be exposed?

from online-auction-java.

ignasi35 avatar ignasi35 commented on May 26, 2024

Yeah, what does http://:9000/user even route to? Shouldn't only ACLs declared by the service descriptor be exposed?

@markusjura does this question still apply? If so, can we find some docs on the subject? /cc @TimMoore

from online-auction-java.

markusjura avatar markusjura commented on May 26, 2024

@ignasi35 Yes, it still applies. I would need to dive a bit deeper into that again to gain a full understanding. Will not be able to do that today. Hopefully, beginning of next week. I keep you posted.

from online-auction-java.

anii1234 avatar anii1234 commented on May 26, 2024

Run "cf unmap-route YOUR-APP-NAME OLD-ROUTE" to remove the existing route from that app.

from online-auction-java.

anii1234 avatar anii1234 commented on May 26, 2024

$ cf env my-app
Getting env variables for app my-app in org My-Org / space development as admin...
OK

System-Provided:
{
"VCAP_SERVICES": {
"p-mysql-n/a": [
{
"credentials": {
"uri":"postgres://lrra:[email protected]:5432/lraa
},
"label": "p-mysql-n/a",
"name": "p-mysql",
"syslog_drain_url": "",
"tags": ["postgres","postgresql","relational"]
}
]
}
}

User-Provided:
my-env-var: 100
my-drain: http://drain.example.com

//u can also review this example..

from online-auction-java.

TimMoore avatar TimMoore commented on May 26, 2024

@anii1234 I think you might be in the wrong place 😄

from online-auction-java.

ignasi35 avatar ignasi35 commented on May 26, 2024

This is solved. user-service no longer collisions with web-gateway

from online-auction-java.

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.