search

Home  >  Q&A  >  body text

rpc - Java provides underlying services and PHP calls services. What form should be used? Or a solution?

Java provides underlying services and PHP calls services. What form should be used? Or a solution?

大家讲道理大家讲道理2747 days ago590

reply all(5)I'll reply

  • 某草草

    某草草2017-05-16 13:07:32

    The most popular method now:

    • Client: mobile, web front-end

    • Service front-end: gateway access end

    • Service backend: microservices

    There are roughly two methods of front-end and back-end communication:

    • Sync: restful接口或rpc接口,数据交互的格式基本都是json.

    • Asynchronous: MQMessage Queue

    PHPPythonNode做前端网关接入层,给客户端提供APIJavaGolang做一些后端底层的微服务。给前端网关提供API

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:07:32

    restful interface

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-16 13:07:32

    It depends on your specific business, whether the security requirements are high or not, etc., whether to use REST or SOAP, etc.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-16 13:07:32

    JSONRPC

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 13:07:32

    Restful, large projects can use components such as thrift.

    reply
    0
  • Cancelreply