Results 1 to 2 of 2
  1. #1

    how many server adapter are created?

    we started to develop a java based server side adapter to serve client subscriptions .
    How many adapters are created for client? One for every client?
    Is a server adapter a thread?

    thanks in advance.

  2. #2
    Administrator
    Join Date
    Feb 2012
    Location
    Milano
    Posts
    716
    Hi Joseph,

    An Adapter Set is made up of a Metadata Adapter and one or multiple Data Adapters, their number is dictated only by the configuration defined in the adapters.xml file and is independent of the number of clients connected to the Lightstreamer server.
    Indeed all the client requests are routed to the same instance of the Metadata regarding authentication and authorization and to one instance of Data Adapter in case of subscription request (in the subscription request the client specifies the Data Adapter from which it wants to receive the data).

    As for the internal architecture of the adapters, you can implement multithreaded management as your application requires, keeping in mind that it is strongly recommended that adapters should reply to the server requests as quickly as possible.
    Especially in the case of in-process adapter, to avoid accumulating of queues of requests in the server. In this case could be a good idea to immediately reply to the server and span processing that may take longer, such as a request to an external service, in a separate thread.

    In any case please refer to section 1.1.2 of "General Concepts" documentation and you can also delve into some of our examples with the source code fully available on GitHub: https://demos.lightstreamer.com/?p=l...erjava=remote.
    But, for a first approach I would suggest:

    - the "Hello World" example: https://github.com/Lightstreamer/Lig...d-adapter-java
    - the "Stock-List" demo: https://github.com/Lightstreamer/Lightstreamer-example-StockList-adapter-java

    Please let us know if you need any furhter clarifications.

    Regards,
    Giuseppe

 

 

Similar Threads

  1. how many server adapter are created?
    By brunovaghi in forum General
    Replies: 1
    Last Post: September 30th, 2016, 09:58 AM
  2. Replies: 1
    Last Post: July 22nd, 2013, 10:28 AM
  3. Replies: 3
    Last Post: July 18th, 2012, 10:55 AM

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 08:23 PM.