For the complete documentation index, see llms.txt. This page is also available as Markdown.

Cross-Platform Interoperability

How .NET, Java, and C++ platforms interoperate in a mixed GridGain cluster, including type compatibility and calling a .NET service from Java.

GridGain allows different platforms, such as .NET, Java and C++, to interoperate with each other. Classes defined on different platforms could be converted to each other.

Type Compatibility

Mixed Cluster

Java, .NET and .C++ nodes can join the same cluster.

All platforms are built on top of Java, so any node can execute Java computations. However, .NET and C++ computations can be executed only on the nodes launched from the corresponding platform.

The following .NET functionality is not supported when there is at least one non-.NET node in the cluster:

  • Scan Queries with filter

  • Continuous Queries with filter

  • ICache.Invoke methods

  • ICache.LoadCache with filter

  • IMessaging.RemoteListen

  • IEvents.RemoteQuery

Calling a .NET Service from Java

Services are an exception to the restrictions above: a .NET service deployed in a mixed cluster can be called from Java nodes. The service instance still runs on .NET nodes, so the assembly that contains it must be loaded on those nodes. See Standalone Nodes for how to load user assemblies, and Services for deployment options.

To call the service from Java, declare a Java interface that mirrors the methods you want to call. Because .NET and Java use different naming conventions, map each method to its .NET counterpart with the @PlatformServiceMethod annotation.

In the example below, DotnetService is your own type in both languages: a .NET class that implements IService, and a Java interface that declares the methods to call. The two names do not have to match, because the service is resolved by its deployment name.

This page is: Copyright © 2026 MariaDB. All rights reserved.

spinner

Last updated

Was this helpful?