1
votes

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

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?

Thanks

1

1 Answers

1
votes

You can use any front-end technology you want.

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

  • 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:

  • 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
  • Use a library such as GraalVM to compile non-JVM languages to JVM bytecode