Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Feb 2010
    Location
    Dallas
    Posts
    4

    General Architecture Question

    I'm not really understanding the architecture and would appreciate any assistance. I want to set up a live auction system where there are several users receiving bids approved my an admin. I understand how they connect to LS to receive data. But I also need to give them the ability to place bids. When they place bids, they need to go to one admin who is connected to LS waiting for bids. Once he approves the bid, that bid must be sent to all the users who are receiving bids.

    1) How can I do this with PHP and/or JavaScript?
    2) What is the simplest (non-java & non .NET) approach to this? What woudl all the pieces be?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    You will need to develop a Lightstreamer Data Adapter and a Lightstreamer Metadata Adapter using PHP. This can be done by leveraging the server-side network protocol (see this tutorial).

    Bear in mind that such PHP Adapters will need to keep persistent TCP connections to Lightstreamer Server.

    When a user submits a bid, the following sequence will take place:
    1) the bid is forwarded to your PHP Metadata Adapter (MA).
    2) The MA passes the bid to your PHP Data Adapter (DA).
    3) The DA sends the bid back to LS Server for publishing to the admin only.
    4) The admin approves the bid, sending it back to the MA.
    5) The MA passes the bid to the DA.
    6) The DA sends the bid to LS Server for publishing to all the users.

  3. #3
    Member
    Join Date
    Feb 2010
    Location
    Dallas
    Posts
    4
    Thanks for the reply. Which pieces are represented in this example?

    http://www.lightstreamer.com/vb/showthread.php?t=515

  4. #4
    Administrator
    Join Date
    Jul 2006
    Location
    Milan, Italy
    Posts
    521
    That piece of code represents a simple PHP Data Adapter.

 

 

Similar Threads

  1. General data and User specific data
    By mnenchev in forum Adapter SDKs
    Replies: 5
    Last Post: September 1st, 2009, 10:36 AM
  2. General Monitoring
    By silvamayne in forum General
    Replies: 1
    Last Post: October 8th, 2007, 06:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 07:33 PM.