Retry mechanism for spring cloud openFiegn client - spring-cloud-netflix

In my project, I am using spring cloud openFeign client to call third party API's.
In case of failure observed, I wanted to retry the API call exponentially.
To my best, I have tried to find the solution in public forum, but ended up only with this link and nothing else. When I followed the steps given over there, it's not working as expected.
Even spring cloud openFeign official documentation does not carry proper information for my problem. Can someone please guide me on how to achieve it?

Related

microsoft custom translator deployment failed

I successfully trained a few models on the Custom Translator portal which I cannot deploy. I tried several times, but each time I start the deployment I get a "Deploymentfailed" status after a while.
Is there anything I should bear in mind or anything I can do about that?
Thanks
I had the same issue and the answer is either that you exceed your quota of 3 deployed models or you are trying to deploy a model in a project where a model is already deployed. Hope this helps.
I just wanted to let you know that we have fixed the deployment process. Please retry your deployments now.

Adding additional vehicles to local instance of graphhopper

Really new to graphhopper and an inexperienced java programmer so I need a little help extending graphhopper core. What I've done so far is install the graphhopper core from the link on the quickstart guide found here. I'm then able to follow the rest of the instructions and get a local instance up and running just fine and interact with it using R and the API instructions. I would like to add support for bike, foot, and transit routing. As per the answer found here, I first attempted to modify graph.flagEncoders=car to graph.flagEncoders=car,foot, bike in the "config-example.properties" file. And that's where things fail. When attempting to run the program in the command prompt, it then fails at this point. Any help and direction would be greatly appreciated.
Edit: 8/24/2018
Below is a screenshot of the command prompt when using graph.flagEncoders=car,foot, bike in the "config-example.properties" file. Note that I'm using the example osm data found on the quickstart guide.
As per Karussell's comment, in this instance all you have to do is delete the *.osm-gh cache folder that's created by Graphhopper.

How to use Breeze Js with DevForce services

We have project developed in Silverlight/DevForce services, currently we plain to move code into HTML5. My question is it possible to reuse server side part of project, I means is it possible to reuse DevForce services or better migrate to WebAPI services? IdeaBlade has Breeze Js for HTML5, but it looks more as dataservice provider and not support DevForce services.
You might be asking whether BreezeJS offers a mechanism for handling arbitrary service calls between the client and the Web API running on the server ... in the manner of the DevForce "invokeServerMethod".
BreezeJS does not . The DevForce "invokeServerMethod" is helpful when you need to talk to the server for non-data reasons. You don't have to open and secure your own channel; instead you can share the DevForce secure data channel between client and server. It's also a convenient way to sent a package of entities. Setting up your own independent channel is not much fun.
But writing and communicating with a Web API service endpoint is much easier. Our thought is that you can manage your non-data communications quite well without the help of the BreezeJS EntityManager. So we don't see the need to implement the equivalent of "invokeServerMethod"
However, perhaps you have a scenario that would cause us to reconsider. We'd love to learn more.
Breeze doesn't integrate with DevForce today. I'd recommend adding the request to the Breeze UserVoice site. The Breeze team uses UserVoice to judge interest when incorporating new features.
A quick look shows me that there is already one DevForce related suggestion there: Support for DevForce models.

Web service API for DRMAA on SGE

Does anyone know of any project to expose the DRMAA API (job scheduling and maintenance API) from SGE (Sun Grid Engine) as a web service API? A RESTful API would be best.
I do not think there are any web service API for SGE. I found drmaa-python pretty easy implementing in python script that can be called from server side scripts like PHP.
There is nothing like this available at the moment, but:
The Open Grid Forum started a new standardization activity to define how DRMAAv2 can be exposed as RESTful API. The specification draft is publicly available.
Since more and more people ask for such a remote interface, implementations might be available pretty soon. They are most likely to be announced by the OGF OCCI working group, so follow them if you are still interested.
Mapping such an implementation to the DRMAAv1 library in GridEngine should be relatively straightforward.

Scribe and Spring Social integration for accessing LinkedIn APIs

A couple of days back I was tasked with integrating Scribe and Spring Social for accessing LinkedIn APIs. Development environment being Windows, Spring and Java.
Spring Social's (spring-social-core-1.0.0.M1.jar) LinkedInTemplate uses org.scribe.extensions.linkedin.LinkedInBaseStringExtractorImpl. (Log messages showed "NoClassDefFoundError" for LinkedInBaseStringExtractorImpl) This class is present in scribe-1.0.7.jar but not in the latest jar i.e scribe-1.1.0.jar (downloaded at https://github.com/fernandezpablo85/scribe-java).
I couldn't find a way to fix this issue. But I was able to do a quick hack: on my local machine, I copied LinkedInBaseStringExtractorImpl from scribe-1.0.7.jar into scribe-1.1.0.jar. Everything works like a charm now.
I am curious to know if anyone else faced similar issues.
What you say is right. Scribe changed it's internals from 1.0 to 1.1 (and greater), though the public apis didn't change, some internals did, and this class LinkedInBaseStringExtractorImpl is no longer part of the lib.
Anyway, you don't need SpringSocial at all, check the LinkedIn example to see how to consume LinkedIn's Api using just scribe.