Git Product home page Git Product logo

aho-corasick's Introduction

failover-safe

Description:

Super lightweight auxiliary fault-tolerance tool, almost keep 0 dependencies ,as much as possible, the rebuilt package is very small but very powerful, to achieve convenience and integration as much as possible, and we can customize our own business coupling.

Technology

  • Use spark as a microservice embedded web engine, with zero dependencies, small, concise, easy to deploy and other advantages
  • Using unirest as a rest client, with high performance, fully asynchronous operation, rich data analysis and Tls operation, simple use and other characteristics
  • Use failsafe as the bottom package to provide fault-tolerant processing in various modes, with small, flexible and rich features

example:

   Unirest.config().socketTimeout(2000);
        Unirest.config().connectTimeout(2000);
        CompletableFuture<HttpResponse> future = FailoverCreator.defaultFailover((e) -> System.out.println("onFailedAttempt"),
                () -> Unirest.get(DEFAULT).asString(), null);

        if (future == null){
            System.out.println("null");
            return;
        }

默认方法的使用请参考方法注释,该方法已满足绝大部分场景,如有需要,可以自己组装定制化容错,方法已注明详细注释

aho-corasick's People

Contributors

androkai avatar crystark avatar danbeck avatar erictapen avatar meir017 avatar omarshibli avatar renaud avatar rma-rripken avatar robert-bor avatar suboptimal avatar the28awg avatar umitgunduz avatar urisimchoni avatar

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.