[openstack-dev] [openstack-php-sdk] integrating transport and service layers

Jamie Hannaford jamie.hannaford at rackspace.com
Mon Jun 23 12:19:20 UTC 2014




On June 23, 2014 at 2:16:18 PM, Jamie Hannaford (jamie.hannaford at rackspace.com<mailto:jamie.hannaford at rackspace.com>) wrote:

Hey all,

Building on our previous discussion about the transport layer, we need to start thinking about it interacts with the service layer. I know we want a completely generic HTTP client that can be injected into any service client, but in order for this to work we need to overcome two main issues:

1. How are we going to decorate requests with service-specific data (e.g. baseURLs) before they’re sent to the API?
2. How are we going to handle authentication?

I’ve described the problem and come up with a potential solution here:

https://gist.github.com/jamiehannaford/33113b649545c7a47eb9

The proposal I had in mind would solve both issues and fully decouple the transport layer from any service implementation details. I put it all in a gist because they support markdown :)

This is just a strawman - feel free to respond with any improvements or alternatives you may have!

Jamie



Jamie Hannaford
Software Developer III - CH     [experience Fanatical Support]

Tel:    +41434303908
Mob:    +41791009767
        [Rackspace]



Rackspace International GmbH a company registered in the Canton of Zurich, Switzerland (company identification number CH-020.4.047.077-1) whose registered office is at Pfingstweidstrasse 60, 8005 Zurich, Switzerland. Rackspace International GmbH privacy policy can be viewed at www.rackspace.co.uk/legal/swiss-privacy-policy
-
Rackspace Hosting Australia PTY LTD a company registered in the state of Victoria, Australia (company registered number ACN 153 275 524) whose registered office is at Suite 3, Level 7, 210 George Street, Sydney, NSW 2000, Australia. Rackspace Hosting Australia PTY LTD privacy policy can be viewed at www.rackspace.com.au/company/legal-privacy-statement.php
-
Rackspace US, Inc, 5000 Walzem Road, San Antonio, Texas 78218, United States of America
Rackspace US, Inc privacy policy can be viewed at www.rackspace.com/information/legal/privacystatement
-
Rackspace Limited is a company registered in England & Wales (company registered number 03897010) whose registered office is at 5 Millington Road, Hyde Park Hayes, Middlesex UB3 4AZ.
Rackspace Limited privacy policy can be viewed at www.rackspace.co.uk/legal/privacy-policy
-
Rackspace Benelux B.V. is a company registered in the Netherlands (company KvK nummer 34276327) whose registered office is at Teleportboulevard 110, 1043 EJ Amsterdam.
Rackspace Benelux B.V privacy policy can be viewed at www.rackspace.nl/juridisch/privacy-policy
-
Rackspace Asia Limited is a company registered in Hong Kong (Company no: 1211294) whose registered office is at 9/F, Cambridge House, Taikoo Place, 979 King's Road, Quarry Bay, Hong Kong.
Rackspace Asia Limited privacy policy can be viewed at www.rackspace.com.hk/company/legal-privacy-statement.php
-
This e-mail message (including any attachments or embedded documents) is intended for the exclusive and confidential use of the individual or entity to which this message is addressed, and unless otherwise expressly indicated, is confidential and privileged information of Rackspace. Any dissemination, distribution or copying of the enclosed material is prohibited. If you receive this transmission in error, please notify us immediately by e-mail at abuse at rackspace.com and delete the original message. Your cooperation is appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140623/22882fe2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image5621db.JPG
Type: image/jpeg
Size: 3124 bytes
Desc: image5621db.JPG
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140623/22882fe2/attachment.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image1a25af.JPG
Type: image/jpeg
Size: 990 bytes
Desc: image1a25af.JPG
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140623/22882fe2/attachment-0001.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imagecd05de.JPG
Type: image/jpeg
Size: 6844 bytes
Desc: imagecd05de.JPG
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140623/22882fe2/attachment-0002.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image09f655.JPG
Type: image/jpeg
Size: 1074 bytes
Desc: image09f655.JPG
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140623/22882fe2/attachment-0003.jpe>


More information about the OpenStack-dev mailing list