Stock quote connection pool

As a short example, I've created an application that reads data about stock symbols (AAPL (Apple), IBM, and MSFT (Microsoft)) and returns some basic information about the symbol, such as the latest stock value. This information is retrieved from a public server provided by the company IEX (https://iextrading.com/developer/docs/#attribution).

The demonstration program, ObjectPoolPattern allows you to enter the name of a stock symbol and then query the server for this symbol's data by clicking the Get data button. This will generate a request in the https://api.iextrading.com/1.0/stock/SYMB/quote form, where SYMB will be replaced with the actual symbol (for example, MSFT).

As connecting to a https server is a relatively ...

Get Hands-On Design Patterns with Delphi now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.