Corda:我们可以开发将由IIS网络服务器运行以与Corda平台通信的Dapps吗? [英] Corda: Can we develop Dapps that will be run by IIS webserver to talk to Corda platform?

查看:66
本文介绍了Corda:我们可以开发将由IIS网络服务器运行以与Corda平台通信的Dapps吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用了"Yo!CorDapp"示例( https://github.com/corda/spring-observable-stream )来构建POC.

We have used "Yo!CorDapp" example (https://github.com/corda/spring-observable-stream) to build a POC.

在此POC中,我们可以将.NET替换为angular的前端,并使用IIS Web服务器代替springboot Web服务器与Corda平台进行通信吗?

In this POC, can we replace angular by .NET for frontend and use IIS webserver in place of springboot webserver to talk to Corda platform?

谢谢

推荐答案

您可以使用所需的任何前端技术.

You can use any front-end technology you want.

从Corda 3开始,您的后端必须基于JVM,这有两个原因:

As of Corda 3, your backend must be JVM-based, for two reasons:

  • 您需要将各种流,状态和其他类定义加载到类路径上,以作为流的参数传递,从库中检索对象等.
  • 您需要使用 CordaRPCClient 库创建到该节点的RPC连接
  • You need to load various flow, state and other class definitions onto the classpath to pass as arguments to flows, retrieve objects from the vault, etc.
  • You need to use the CordaRPCClient library to create an RPC connection to the node

如果您确实需要用另一种语言编写后端,则有一些解决方法:

If you really need to write your back-end in another language, there are a few workarounds:

  • 创建一个位于主Web服务器和节点之间的精简Java Web服务器.Java Web服务器将来自主Web服务器的HTTP请求转换为对节点的RPC调用,并将来自节点的RPC响应转换为对主Web服务器的HTTP响应
    • 这是诸如辫子
    • 之类的库所采用的方法.
    • Create a thin Java webserver that sits between your main webserver and the node. The Java webserver translates HTTP requests from the main webserver into RPC calls to the node, and RPC responses from the node into HTTP responses to the main webserver
      • This is the approach taken by libraries such as Braid

      这篇关于Corda:我们可以开发将由IIS网络服务器运行以与Corda平台通信的Dapps吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆