• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Publish Messages to a Topic in a Pub/Sub Model

The Pub/Sub (Publisher/Subscriber) model in NCache enables decoupled and event-driven messaging. Publishers can send messages to a Topic using the ITopic interface without knowing who the subscribers are. This also provides event registrations for message delivery failure, receiving messages, and deleting Topics. It provides the Publish method, which publishes the message to a specific Topic in the cache. While publishing messages to a Topic, the publisher can set the delivery option for messages, message expiration, message delivery failure notification, and Topic deletion notification. Here, we describe how to publish messages, publish messages asynchronously, publish bulk messages, and publish ordered messages.

Prerequisites

Before using the NCache client-side APIs, ensure that the following prerequisites are fulfilled:

  • .NET
  • Java
  • Python
  • Node.js
  • Legacy API
  • Install the following NuGet packages in your .NET client application:
    • Enterprise: Alachisoft.NCache.SDK
    • OpenSource: Alachisoft.NCache.Opensource.SDK
  • Include the following namespaces in your application:
    • Alachisoft.NCache.Client
    • Alachisoft.NCache.Runtime.Exceptions
    • Alachisoft.NCache.Runtime.Caching
  • The cache must be running.
  • Make sure that the data being added is serializable.
  • For API details, refer to: ICache, CacheItem, ITopic, Publish, GetTopic, PublishAsync, ExpirationTime, MessageDeliveryFailure, OnTopicDeleted, DeliveryOption, Message, PublishBulk, MessageFailedEventArgs, TopicDeleteEventArgs.
  • Add the following Maven dependencies for your Java client application in pom.xml file:
<dependency>
    <groupId>com.alachisoft.ncache</groupId>
    <!--for NCache Enterprise-->
    <artifactId>ncache-client</artifactId>
    <version>x.x.x</version>
</dependency>
  • Import the following packages in your Java client application:
    • import com.alachisoft.ncache.client.*;
    • import com.alachisoft.ncache.runtime.exceptions.*;
    • import com.alachisoft.ncache.runtime.caching.*;
  • The cache must be running.
  • Make sure that the data being added is serializable.
  • For API details, refer to: Cache, CacheItem, Topic, getTopic, publish, Message, setExpirationTime, TopicListener, addMessageDeliveryFailureListener, addTopicDeletedListener, DeliveryOption, All, publishAsync, publishBulk, TopicDeleteEventArgs, MessageFailedEventArgs, MessageEventArgs.
  • Install the following packages in your Python client application:
    • Enterprise: ncache-client
  • Import the following packages in your application:
    • from ncache.client import*
    • from ncache.runtime import*
    • from ncache.runtime.caching import *
    • from ncache.client.services import *
  • The cache must be running.
  • Make sure that the data being added is serializable.
  • For API details, refer to: Cache, CacheItem, get_topic, get_messaging_service, TimeSpan, set_expiration_time, add_message_delivery_failure_listener, add_topic_deleted_listener, publish_async, publish_bulk, MessageEventArgs, get_topic_name, MessageFailedEventArgs, get_message_failure_reason, TopicDeleteEventArgs.
  • Install and include the following module in your Node.js client application:

    • Enterprise: ncache-client
  • Include the following class in your application:

    • Cache
    • Topic
    • TopicSubscription
  • The cache must be running.
  • Make sure that the data being added is serializable.
  • For API details, refer to: Cache, CacheItem, Topic, getTopic, publish, getMessagingService, TimeSpan, setExpirationTime, TopicListener, addMessageDeliveryFailureListener, addTopicDeletedListener, DeliveryOption, publishBulk, MessageReceivedListener.
  • Install either of the following NuGet packages in your .NET client application:
    • Enterprise: Install-Package Alachisoft.NCache.SDK -Version 4.9.1.0
  • Create a new Console Application.
  • Make sure that the data being added is serializable.
  • Add NCache References by locating %NCHOME%\NCache\bin\assembly\4.0 and adding Alachisoft.NCache.Web and Alachisoft.NCache.Runtime as appropriate.
  • Include the Alachisoft.NCache.Web.Caching and Alachisoft.NCache.Runtime.Caching namespaces in your application.
  • To learn more about the NCache Legacy API, please download the NCache 4.9 documents available as a .zip file on the Alachisoft Website.

Publish Messages

The following code sample demonstrates how to:

  1. Create dedicated Topics for Order related messages.
  2. Register the MessageDeliveryFailure event for the Topic.
  3. Register the OnTopicDeleted event for the Topic.
  4. Create messages for each Topic, enabling expiration and delivery options.
  5. Publish the messages.
  • .NET
  • Java
  • Python
  • Node.js
  • Legacy API
try
{
    // Precondition: Cache is already connected

    // Topic "orderTopic" exists in cache
    string topicName = "orderTopic";

    // Get the Topic
    ITopic orderTopic = cache.MessagingService.GetTopic(topicName);

    if (orderTopic != null)
    {
        // Create the object to be sent in message
        Order order = FetchOrderFromDB(10248);

        // Create the new message with the object order
        var orderMessage = new Message(order);

        // Set the expiration time of the message
        orderMessage.ExpirationTime = TimeSpan.FromSeconds(5000);

        // Register message delivery failure
        orderTopic.MessageDeliveryFailure += OnFailureMessageReceived;

        // Register Topic deletion notification
        orderTopic.OnTopicDeleted = TopicDeleted;

        // Publish the order with delivery option set as all and register message delivery failure
        orderTopic.Publish(orderMessage, DeliveryOption.All, true);
    }
    else
    {
        // No Topic exists
    }
}
catch (OperationFailedException ex)
{
    if (ex.ErrorCode == NCacheErrorCodes.MESSAGE_ID_ALREADY_EXISTS)
    {
        // Message ID already exists, specify a new ID
    }
    if (ex.ErrorCode == NCacheErrorCodes.TOPIC_DISPOSED)
    {
        // Specified topic has been disposed
    }
    if (ex.ErrorCode == NCacheErrorCodes.PATTERN_BASED_PUBLISHING_NOT_ALLOWED)
    {
        // Message publishing on pattern based topic is not allowed
        // Get non-pattern based topic
    }
    else
    {
        // Exception can occur due to:
        // Connection Failures
        // Operation Timeout
        // Operation performed during state transfer
    }
}
catch (Exception ex)
{
    // Any other generic exception like ArgumentNullException or ArgumentException
    // Topic name is null/empty
}
try
{
    // Precondition: Cache is already connected

    // Already existing Topic
    String topicName = "orderTopic";

    // Get Topic
    Topic orderTopic = cache.getMessagingService().getTopic(topicName);

    if (topicName != null) {
        // Create object to be sent in the message
        Order order = fetchOrdersFromDB(1100);

        // Create new message
        Message orderMessage = new Message(order);

        TimeSpan expiryTime = new TimeSpan(12, 12, 12);
        // Set expiration time of the message
        orderMessage.setExpirationTime(expiryTime);

        // Register message delivery failure
        MyTopicListener topicListener = new MyTopicListener();
        orderTopic.addMessageDeliveryFailureListener(topicListener);
        orderTopic.addTopicDeletedListener(topicListener);

        // Publish the order with delivery option set as All and register message delivery failure
        orderTopic.publish(orderMessage, DeliveryOption.All, true);
    } else 
    {
        // No Topic exists
    }
}
catch (OperationFailedException exception) 
{
    if (exception.getErrorCode() == NCacheErrorCodes.MESSAGE_ID_ALREADY_EXISTS) {
        // Message ID already exists. Specify a new ID
    }
    if (exception.getErrorCode() == NCacheErrorCodes.TOPIC_DISPOSED) {
        // Specified topic has been disposed
    }
    if (exception.getErrorCode() == NCacheErrorCodes.PATTERN_BASED_PUBLISHING_NOT_ALLOWED) {
        // Message publishing on pattern based topic is not allowed
        // Get non-pattern based topic
    } else {
        // Exception can occur due to:
        // Connection Failures
        // Operation Timeout
        // Operation performed during state transfer
    }
} 
catch (Exception exception) 
{
    // Any generic exception like IllegalArgumentException or NullPointerException
}
try:
    # Precondition: Cache is already connected

    # Topic "orderTopic" exists in the cache
    topic_name = "orderTopic"

    # Get the Topic
    order_topic = cache.get_messaging_service().get_topic(topic_name)

    if order_topic is not None:
        # Create object to be sent in message
        order = fetch_order_from_db(10248)

        # Create a new message with the object order
        order_message = Message(order)

        # Set the expiration time of the message
        expiry_time = TimeSpan(0, 12, 12, 12, 0)
        order_message.set_expiration_time(expiry_time)

        # Register message delivery failure
        order_topic.add_message_delivery_failure_listener(on_message_delivery_failure)

        # Register Topic deletion notification
        order_topic.add_topic_deleted_listener(on_topic_deleted)

        # Publish the order with delivery option set as All and register message delivery failure
        order_topic.publish(order_message, DeliveryOption.ALL, True)
    else:
        # No Topic exists

except Exception as ex:
    # Exception can occur due to:
    # - Connection failures
    # - Operation timeout
    # - Topic does not exist / invalid arguments
    print("Operation failed: " + str(ex))
try
{
    // This is an async method
    // Precondition: Cache is already connected

    // Topic "orderTopic" exists in cache
    let topicName = "orderTopic";

    // Get the Topic
    let messagingService = await cache.getMessagingService();
    let orderTopic = await messagingService.getTopic(topicName);

    if (orderTopic !== null) 
    {
        // Create the object to be sent in message
        let order = await FetchOrderFromDB(10248);

        // Create the new message with the object order
        let orderMessage = new ncache.Message(order);

        // Set the expiration time of the message
        let expiryTime = new ncache.TimeSpan(0, 0, 0, 5000);
        orderMessage.setExpirationTime(expiryTime);

        // Register message delivery failure
        orderTopic.addMessageDeliveryFailureListener(topicListener);

        // Register Topic deletion notification
        orderTopic.addTopicDeletedListener(topicListener);

        // Publish the order with delivery option set as all and register message delivery failure
        await orderTopic.publish(orderMessage, ncache.DeliveryOption.All, null, true);
    } 
    else 
    {
        // No Topic exists
    }
}
catch (error) {
  // Handle any errors
}
try
{
    // Using NCache Enterprise 4.9.1
    // Precondition: Cache is already connected

    // Topic "orderTopic" exists in cache
    string topicName = "orderTopic";

    // Get the Topic
    ITopic orderTopic = cache.MessagingService.CreateTopic(topicName);

    if (orderTopic != null)
    {
        // Create the object to be sent in message
        Order order = FetchOrderFromDB(10248);

        // Create the new message with the object order
        Message orderMessage = new Message(order);

        // Set the expiration time of the message
        orderMessage.ExpirationTime = new TimeSpan(0, 0, 150);

        // Register message delivery failure
        orderTopic.MessageDeliveryFailure += FailureMessageReceived;

        // Register Topic deletion notification
        orderTopic.OnTopicDeleted = TopicDeleted;

        // Publish the order with delivery option set as all and register message delivery failure
        orderTopic.Publish(orderMessage, DeliveryOption.All, true);
    }
    else
    {
        // No Topic exists
    }
}
catch (OperationFailedException ex)
{
    if (ex.ErrorCode == NCacheErrorCodes.MESSAGE_ID_ALREADY_EXISTS)
    {
        // Message ID already exists, specify a new ID
    }
    if (ex.ErrorCode == NCacheErrorCodes.TOPIC_DISPOSED)
    {
        // Specified topic has been disposed
    }
    if (ex.ErrorCode == NCacheErrorCodes.PATTERN_BASED_PUBLISHING_NOT_ALLOWED)
    {
        // Message publishing on pattern based topic is not allowed
        // Get non-pattern based topic
    }
    else
    {
        // Exception can occur due to:
        // Connection Failures
        // Operation Timeout
        // Operation performed during state transfer
    }
}
catch (Exception ex)
{
    // Any other generic exception like ArgumentNullException or ArgumentException
    // Topic name is null/empty
}
Note

To ensure the operation is fail-safe, it is recommended to handle any potential exceptions within your application, as explained in Handling Failures.

Publish Asynchronously

Messages can be published on the Topic asynchronously using PublishAsync so that the application does not wait for the operation completion to perform the next operation. The user has the control returned to them immediately for further processing. The following example lets you publish a message asynchronously.

  • .NET
  • Java
  • Python
// Precondition: Cache is already connected

// Topic "orderTopic" exists in cache
string topicName = "orderTopic";

// Get the Topic
ITopic orderTopic = cache.MessagingService.GetTopic(topicName);

if (orderTopic != null)
{
    // Create the object to be sent in message
    Order order = FetchOrderFromDB(10248);

    // Create the new message with the object order
    var orderMessage = new Message(order);

    // Set the expiration time of the message
    orderMessage.ExpirationTime = TimeSpan.FromSeconds(5000);

    // Register message delivery failure
    orderTopic.MessageDeliveryFailure += OnFailureMessageReceived;

    // Register Topic deletion notification
    orderTopic.OnTopicDeleted = TopicDeleted;

    // Publish the order with delivery option set as all and register message delivery failure
    Task task = orderTopic.PublishAsync(orderMessage, DeliveryOption.All, true);

    if(task.IsFaulted)
    {
        // Task Failed
    }
}
else
{
    // No Topic exists
}
// Precondition: Cache is already connected

// Topic orderTopic already exists in the cache
String topicName = "orderTopic";

// Get the Topic
Topic orderTopic = cache.getMessagingService().getTopic(topicName);

if (orderTopic != null) {
    // Create object to be sent in the message
    Order order = fetchOrdersFromDB(1100);

    // Create new message
    Message orderMessage = new Message(order);

    TimeSpan expiryTime = new TimeSpan(12, 12, 12);
    // Set expiration time of the message
    orderMessage.setExpirationTime(expiryTime);

    // Register message delivery failure
    MyTopicListener topicListener = new MyTopicListener();
    orderTopic.addMessageDeliveryFailureListener(topicListener);
    orderTopic.addTopicDeletedListener(topicListener);

    // Publish the order with delivery option set as All and register message delivery failure
    TimeScheduler.Task task = (TimeScheduler.Task) orderTopic.publishAsync(orderMessage, DeliveryOption.All, true);

    if (task.IsCancelled()) {
        // Task cancelled
    }
} else {
    // No Topic exists
}
# Precondition: Cache is already connected

# Topic "orderTopic" exists in the cache
topic_name = "orderTopic"

# Get the Topic
order_topic = cache.get_messaging_service().get_topic(topic_name)

if order_topic is not None:

    # Create object to be sent in message
    order = fetch_order_from_db(10248)

    # Create a new message with the object order
    order_message = Message(order)

    # Set the expiration time of the message
    expiry_time = TimeSpan(0, 1, 23, 20, 0)
    order_message.set_expiration_time(expiry_time)

    # Register message delivery failure
    order_topic.add_message_delivery_failure_listener(on_message_delivery_failure)

    # Register Topic deletion notification
    order_topic.add_topic_deleted_listener(on_topic_deleted)

    # Publish the order with delivery option set as All and register message delivery failure
    try:
        await order_topic.publish_async(order_message, DeliveryOption.ALL, True)
        print("Message published asynchronously.")
    except Exception as e:
        print(f"Async publish failed: {e}")

else:
    # No Topic exists

Publish Bulk Messages

Multiple messages can be published in a single call using the PublishBulk method. This improves the performance and memory usage as a bulk of messages will be combined and published in a single call. The code below takes an instance of an already created Topic orderTopic, and shows the bulk publishing of messages to the Topic.

  • .NET
  • Java
  • Python
  • Node.js
// Precondition: Cache is already connected

// Topic "orderTopic" exists in cache
ITopic topic = cache.MessagingService.GetTopic("orderTopic");

if (topic != null)
{
    // Create dictionary for storing bulk
    List<Tuple<Message, DeliveryOption>> messageList = new List<Tuple<Message, DeliveryOption>>();
    Order[] orders = FetchOrdersFromDB();
        for (int i = 0; i < 100; i++)
    {
        Message message = new Message(orders[i]);
        message.ExpirationTime = TimeSpan.FromSeconds(10000);
        messageList.Add(new Tuple<Message, DeliveryOption>(message, DeliveryOption.All));
    }
    // Register message delivery failure
    topic.MessageDeliveryFailure += OnFailureMessageReceived;

    // Register Topic deletion notification
    topic.OnTopicDeleted = TopicDeleted;

    // Publish the order with delivery option set as all and register message delivery failure
    // In case of failed publishing of messages, exceptions will be returned
    IDictionary<Message, Exception> keys = topic.PublishBulk(messageList, true);
}
// Precondition: Cache is already connected

// Topic already exists
String topicName = "orderTopic";
String customerID = "DUMON";
Topic topic = cache.getMessagingService().getTopic(topicName);

if (topic != null) {
    // Create dictionary for storing bulk
    Map messageMap = new HashMap();

    Order[] orders = fetchOrdersFromDb(customerID);

    for (int i = 0; i < 100; i++) {
        Message message = new Message(orders[i]);
        message.setExpirationTime(TimeSpan.FromSeconds(10000));
        messageMap.put(message, DeliveryOption.All);
    }
    MyTopicListener topicListener = new MyTopicListener();

    // Register message delivery failure
    topic.addMessageDeliveryFailureListener(topicListener);

    // Register Topic deletion notification
    topic.addTopicDeletedListener(topicListener);

    Map<Message, Exception> keys = topic.publishBulk(messageMap, true);
} else 
{
    // Topic is null
}
# Precondition: Cache is already connected

# Topic "orderTopic" exists in the cache
topic_name = "orderTopic"

# Get the Topic
topic = cache.get_messaging_service().get_topic(topic_name)

if topic is not None:
    # Create Dict for storing messages in bulk
    messages_map = {}

    orders = fetch_orders_from_db()
    for i in range(0, 100):
        message = Message(orders[++i])
        message.set_expiration_time(TimeSpan.from_seconds(10000))
        messages_map[message] = DeliveryOption.ALL

    # Register message delivery failure
    topic.add_message_delivery_failure_listener(on_message_delivery_failure)

    # Register Topic deletion notification
    topic.add_topic_deleted_listener(on_topic_deleted)

    # Publish the order with delivery option set as All and register message delivery failure
    # In case of failed publishing of messages, exception will be returned
     keys = topic.publish_bulk(messages_map, True)
// Precondition: Cache is already connected

// This is an async method

// Topic "orderTopic" exists in the cache
let messagingService = await cache.getMessagingService();
let topic = await messagingService.getTopic("orderTopic");

if (topic != null) 
{
    // Create Map for storing messages in bulk
    let messageMap = new Map();

    const orders = FetchOrdersFromDB();

    for (var i = 0; i < 100; i++) 
    {
        let message = new ncache.Message(orders[i]);
        message.setExpirationTime(new ncache.TimeSpan(0, 0, 0, 10000));
        messageMap.set(message, ncache.DeliveryOption.All);
    }

    // Register message delivery failure
    topic.addMessageDeliveryFailureListener(topicListener);

    // Register Topic deletion notification
    topic.addTopicDeletedListener(topicListener);

    // Publish the order with delivery option set as All and register message delivery failure
    // In case of failed publishing of messages, exception will be returned
    let keys = topic.publishBulk(messageMap, true);
} 
else 
{
    // No Topic exists
}

Publish Ordered Messages

Note

This feature is only available in NCache 5.2 and onwards.

Messages can be published by specifying a sequence name resulting in the messages being published in a specific order. To specify ordered messages, a string sequence name is added to the chain of the messages that makes sure to publish all the messages belonging to a specific sequence name on the same server node. In the example given below, a sequence name is added with the messages, and the messages are then published using the Publish method.

  • .NET
  • Java
  • Python
  • Node.js
// Precondition: Cache is already connected

// Specify the Topic name that already exists
string topicName = "orderTopic";
// Get the Topic with the specified name
ITopic orderTopic = cache.MessagingService.GetTopic(topicName);
if (orderTopic  != null)
{
    for (int i = 0; i < 30; i++)
    {
        // Create the object to be sent in message
        Order order = FetchOrderFromDB(10248);

        // Create the new message with the object order
        var orderMessage = new Message(order);

        // Specify a unique sequence name for the messages
        string sequenceName = "OrderMessages";

        // Set the expiration time of the message
        orderMessage.ExpirationTime = TimeSpan.FromSeconds(5000);

        // Publish message with the sequence name
        orderTopic.Publish(orderMessage, DeliveryOption.All, sequenceName, true);
    }
}
else
{
    // No Topic found
}
// Precondition: Cache is already connected

// Specify the Topic name that already exists
String topicName = "orderTopic";

// Get the Topic with the specified name
Topic orderTopic = cache.getMessagingService().getTopic(topicName);

if (orderTopic != null) 
{
    for (int i = 0; i < 30; i++) {
        // Create the object to be sent in the message
        Order order = fetchOrdersFromDB(10248);

        // Create the new message with the object order
        var orderMessage = new Message(order);

        // Specify a unique sequence name for the message
        String sequenceName = "OrderMessage";

        // Set the expiration time of the message
        orderMessage.setExpirationTime(TimeSpan.FromSeconds(5000));

        // Publish message with the sequence name
        orderTopic.publish(orderMessage, DeliveryOption.All, sequenceName, true);
    }
} else {
    // No Topic found
}
# Precondition: Cache is already connected

# Specify the Topic name that already exists
topic_name = "orderTopic"

# Get the Topic with the specified name
order_topic = cache.get_messaging_service().get_topic(topic_name)

if topic_name is not None:
    for i in range(0, 30):
        # Create the object to be sent in the message
        order = fetch_order_from_db(10248)

        # Create the new message with the object order
        order_message = Message(order)

        # Specify a unique sequence name for the message
        sequence_name = "OrderMessages"

        # Set the expiration time of the message
        order_message.set_expiration_time(TimeSpan.from_seconds(5000))

        # Publish message with the sequence name
        order_topic.publish(order_message, DeliveryOption.ALL, True, sequence_name)
else:
    # No Topic found
// Precondition: Cache is already connected

// This is an async method

// Specify the Topic name that already exists
let topicName = "orderTopic";

// Get the Topic with the specified name
let messagingService = await cache.getMessagingService();
let orderTopic = await messagingService.getTopic(topicName);

if (orderTopic != null) 
{
    for (var i = 0; i < 30; i++) 
    {
        // Create the object to be sent in message
        let order = await FetchOrderFromDB();

        // Create the new message with the object order
        let orderMessage = new ncache.Message(order);

        // Specify a unique sequence name for the message
        let sequenceName = "OrderMessage";

        // Set the expiration time of the message
        orderMessage.setExpirationTime(new ncache.TimeSpan(0, 0, 0, 5000));

        // Publish message with the sequence name
        orderTopic.publish(
            orderMessage,
            ncache.DeliveryOption.All,
            sequenceName,
            true
            );
     }
} 
else 
{
    // No Topic found
}

Register Callbacks

  • .NET
  • Java
  • Python
  • Node.js
  • Legacy API
private void OnFailureMessageReceived(object sender, MessageFailedEventArgs args)
{
    // Failure reason can be get from args.MessageFailureReason
}

private void TopicDeleted(object sender, TopicDeleteEventArgs args)
{
    // Deleted Topic is args.TopicName
}
@Override
public void onTopicDeleted(Object sender, TopicDeleteEventArgs args) {
    // Deleted Topic is args.getTopicName();
}

@Override
public void onMessageDeliveryFailure(Object sender, MessageFailedEventArgs args) {
    // Failure reason is args.getMessageFailureReason();
}

@Override
public void onMessageReceived(Object sender, MessageEventArgs args) {
    // Perform operations
}
def on_topic_deleted(sender: object, args: ncache.TopicDeleteEventArgs):
    # Perform operations
    print("Deleted Topic is " + args.get_topic_name())

def on_message_delivery_failure(sender: object, args: ncache.MessageFailedEventArgs):
    # Perform operations
    print("Failure reason is " + str(args.get_message_failure_reason()))

def on_message_received(sender: object, args: ncache.MessageEventArgs):
    # Perform operations
    print("Message received from Topic " + args.get_topic_name())
function onMessageDeliveryFailure(sender, args) 
{
    // Failure reason is args.getMessageFailureReason()
}

function onTopicDeleted(sender, args) 
{
    // Deleted Topic is args.getTopicName()
}
// Using NCache Enterprise 4.9.1

private void FailureMessageReceived(object sender, MessageFailedEventArgs args)
{
   // Failure reason can be get from args.MessageFailureReason
}

private void TopicDeleted(object sender, TopicDeleteEventArgs args)
{
   // Deleted Topic is args.TopicName
}

Additional Resources

NCache provides sample application for Pub/Sub on GitHub.

See Also

.NET: Alachisoft.NCache.Runtime.Caching namespace.
Java: com.alachisoft.ncache.runtime.caching namespace.
Python: ncache.client.services class.
Node.js: Topic class.

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top