- Create a reusable connection pool class that handles failover
Subclass at least KiddieClient
to create the public API for your client driver. Should call KiddieClient._sendall(<str>)
to send data.
TODO Support recv()
ing data too
TODO Have the client create it's own pool?
- Create a
KiddiePool
of connections (KiddieConnections
) - Pass the pool instance to your
KiddieClient
subclass for use - Use your client's API and it will use the pool automatically