This project includes a Lightstreamer web client that subscribes to and show data from the Lightstreamer - DynameDB Demo - Kotlin Adapter.
The Demo simulates a basic departures board with a few rows which represent information on flights departing from a hypothetical airport. The data are simulated in the back-end and retrieved from an Amazon DynamoDB data source. How to retrieve this information from the DB and inject it into the Lightstreamer Server is the task of the adapter project: Lightstreamer - DynameDB Demo - Kotlin Adapter.
This page uses the Web Client SDK API for Lightstreamer to handle the communications with Lightstreamer Server. A simple user interface is implemented to display the real-time data received from Lightstreamer Server.
The demo includes the following client-side functionalities:
- A Subscription containing only 1 item and 1 field, subscribed to in MERGE mode, and feeding a DynaGrid with the simulated current time (and yes, the time in this demo is accelerated).
- A Subscription with a single item subscribed to in COMMAND mode feeding a DynaGrid with the current list and status of the next departing flights (according with the simulated time).
If you want to install a version of this demo pointing to your local Lightstreamer Server, follow these steps:
- As prerequisite, the Lightstreamer - DynameDB Demo - Kotlin Adapter has to be deployed on your local Lightstreamer Server instance. Please check out that project and follow the installation instructions provided in it.
- Download this project.
- Deploy this demo on the Lightstreamer Server (used as Web server) or in any external Web Server. If you choose the former, create the folders
<LS_HOME>/pages/demos/DynamoDBDemo
and copy here the contents of thesrc
folder of this project.
The client demo configuration assumes that Lightstreamer Server, Lightstreamer Adapters, and this client are launched on the same machine. If you need to target a different Lightstreamer server, please double check the LS_HOST
variable in src/js/const.js
and change it accordingly.
- Open your browser and point it to: http://localhost:8080/DynamoDBDemo
- Our blog post: Virtual Airport Demo: Connecting DynamoDB to Lightstreamer
- Lightstreamer - DynameDB Demo - Kotlin Adapter
- Lightstreamer - Reusable Metadata Adapters - Java Adapter
- Compatible with Lightstreamer JavaScript Client library version 6.0 or newer.