Code Monkey home page Code Monkey logo

jigsaw-payment's Introduction

jigsaw-payment

jigsaw payment 支付系统,面向互联网商户提供的支付系统。 支付系统几乎是互联网应用必不可少的模块,也是各个互联网应用中少数可以标准化的系统。 本系统是基于凤凰牌老熊的系列文章 而设计的,采用微服务架构。 命名为Jigsaw的目的是让使用者可以像搭积木一样,易于定制、易于扩展。

入门

需要安装的软件

  1. Apache Thrift
  2. Google Protocol Buffer
  3. MySQL, 新建用户payment,密码123456,新建库jigasw_payment_0, jigsaw_payment_1, 导入相关的sql文件;
  4. redis
  5. zookeeper,新增用户payment,密码123456,节点/payment/rpc

请自行查阅相关文件来安装。

构建

你可以直接使用已发布的版本。如果需要验证最新的版本,可以下载本项目的代码,使用JDK1.8,运行如下命令:

mvn clean install

模块列表

jigsaw-thrift-protobuf

这是RPC引擎,使用Apache Thrift 作为容器, Google Protocol Buffer 作为输入输出。相对于dubbo、 纯Apache Thrift等RPC容器,优势在于:

  1. 高性能,Apache Thrift是已知RPC容器中性能最好的。
  2. 传输效率高, Google Protocol Buffer 的压缩率相对Apache Thrift 的strut 结构 可以节省20% 空间。
  3. 可扩展性好,得益于Protobuf优越的兼容性设计,对接口参数进行调整时,对老接口仍然可以保持很好的兼容。

这个引擎是对Apache Thrift 的极简轻量级封装,可靠,易于使用。 和Spring 良好集成,易于开发。

jigsaw-rpc-example-server

RPC引擎服务器端示例。 展示如何通过springframework的@Component标签来实现一个新的接口。

jigsaw-rpc-example-client

RPC引擎客户端示例,和jigsaw-rpc-example-server配合使用。

jigsaw-rpc-schema

支付数据规范,使用Google Protocol Buffer格式来定义。

jigsaw-payment's People

Contributors

shamphone avatar atschx avatar rocszh avatar

Stargazers

 avatar

Watchers

James Cloos 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.