Introduction

This document is for the hands-on working lab for DevNet in Cisco Live US-Vegas. The attendee will use the sample scripts on the pxGrid client to illustrate the workings of Cisco Platform Exchange Grid (pxGrid) Dynamic Topics.

The pxGrid client will be a Centos 7 64-bit Linux server.

Dynamic Topics provide information exchange with pxGrid clients connected to the Grid (ISE pxGrid node).

A pxGrid client looking to publish information becomes the publisher, and publishes a topic to the Grid. This topic defines the topic name, query items, and action items that can be subscribed to by other pxGrid clients. Other pxGrid clients on the Grid can subscribe to this published topic and consume this information.

This attendee will learn Dynamic Topic concepts by using the sample scripts on the pxGrid client, and using the following use case:

A service for bidding on items in an auction is used. The inventory items will be updated with new items and the users need to be notified of the inventory change. Users need to be able to query the current bids on items. Users also need to be able to bid on items and eventually items will be sold.

There are three categories of users participating in this service:

  • Seller: Continuously updating the inventory and the bidding statuts.

  • Bidder: A user with bidding privileges who wants to buy an item and bids on it.

  • Watcher: Watches the on-going bids and new inventory items, but has no bidding privileges.

The process is as follows:

  • An Auction topic is set up by the pxGrid client publisher, sdk-01. The topic name, query information, and action items will be defined in the generic_publisher.conf file and used in the generic_client script to publish the topic.

  • The topic will be approved by the admin, and placed in the Action_Publish Group.

  • Query items available to the subscriber will be defined in the generic_subscriber.conf file. The pxGrid client sdk-01-sub will become the subscriber and able to consume inventory items and current bids.