Giter VIP home page Giter VIP logo

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;
        }

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

jack.lei's Projects

aho-corasick icon aho-corasick

Java implementation of the Aho-Corasick algorithm for efficient string matching

ansj_seg icon ansj_seg

ansj分词.ict的真正java实现.分词效果速度都超过开源版的ict. 中文分词,人名识别,词性标注,用户自定义词典

antlr4 icon antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

apollo-11 icon apollo-11

Original Apollo 11 Guidance Computer (AGC) source code for the command and lunar modules.

async-profiler icon async-profiler

Sampling CPU and HEAP profiler for Java featuring AsyncGetCallTrace + perf_events

awesome-go icon awesome-go

A curated list of awesome Go frameworks, libraries and software

backoff icon backoff

Simple backoff algorithm in Go (golang)

bbolt icon bbolt

An embedded key/value database for Go.

bigcache icon bigcache

Efficient cache for gigabytes of data written in Go.

blog_demos icon blog_demos

CSDN博客专家程序员欣宸的github,这里有四百多篇原创文章的详细分类和汇总,以及对应的源码,内容涉及Java、Docker、Kubernetes、DevOPS等方面

builder icon builder

Fluent immutable builders for golang

byte-buddy icon byte-buddy

Runtime code generation for the Java virtual machine.

cache icon cache

Cache library with Redis backend for Golang

cel-go icon cel-go

Fast, portable, non-Turing complete expression evaluation with gradual typing (Go)

cobra icon cobra

A Commander for modern Go CLI interactions

codec-dubbo icon codec-dubbo

支持 kitex <-> dubbo 互通的 dubbo 协议编解码器。

conductor icon conductor

Conductor is a microservices orchestration engine - https://netflix.github.io/conductor/

corenlp icon corenlp

Stanford CoreNLP: A Java suite of core NLP tools.

darts-java icon darts-java

Java porting of Darts (Double ARray Trie System)

dbeaver icon dbeaver

Free universal database tool and SQL client

decimal icon decimal

Arbitrary-precision fixed-point decimal numbers in go

deepmosaics icon deepmosaics

Automatically remove the mosaics in images and videos, or add mosaics to them.

depix icon depix

Recovers passwords from pixelized screenshots

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.