Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Microservices

1,685 views

Published on

Microservices lecture

Published in: Software
  • Be the first to comment

Microservices

  1. 1. Microservices Paul Pound University of Prince Edward Island
  2. 2. What do we mean when we say microservices? ● Small focused tasks (in our case they are often used for creating derivatives) ● Our Microservices are invoked via events in Fedora (via JMS/Stomp messages) Microservices
  3. 3. Currently we have two versions. ● Python version - the original version. ○ https://github. com/Islandora/islandora_microservices ● PHP version - developed so we could leverage existing Islandora php code including tuque ○ https://github.com/roblib/php_listeners ○ This version has been updated to use Taverna. Microservices
  4. 4. ● OCR ● Image manipulation - thumbnails, image conversion (tiff to jp2) ● File conversion - convert Word or Open Office files to PDF, convert PDF to PDFa ● Technical metadata, crosswalks ● Handles ● Some security policy management (publishing an object) ● Other? Microservices common usage
  5. 5. ● Services and their dependencies can be installed, configured and maintained once. ● UPEI has a number of Drupal servers and instead of installing Tesseract, Imagemagick etc. on each one we can install and maintain these packages in one place but use them with various Fedora or Drupal installs ● Consistency - Microservices will be invoked if an object is modified by an external script, Islandora, Hydra or the Fedora admin client. Microservices Advantages
  6. 6. ● With Taverna we can also leverage third party external services. Advantages Continued
  7. 7. Old PHP architecture
  8. 8. CS482 UPEI student project to integrate the old PHP microservices with Taverna. Goals of this project: ● Create and manage workflow using Taverna Workbench ● Store Taverna T2flow in Fedora content models Current Microservices implementation
  9. 9. ● When our listener receive a message we will get the corresponding T2flow document from the objects content model and pass that on to Taverna Server. ● Taverna server then dispatches the workflow to the correct locations ● Taverna workbench for creating/designing workflow Current Microservices cont’d
  10. 10. Current architecture
  11. 11. ● Readme ● Wiki Installing and configuring microservices
  12. 12. To create a workflow you need Taverna Workbench installed. ● Click import new services and choose WSDL Service and enter a url to the services soap endpoint. ● Drag and drop functions to the canvas ● Configure the functions ○ don’t forget looping and security. ● Documentation ● Demo workbench Create a workflow
  13. 13. Example Workflow
  14. 14. There are two config.xml files. One file contains configuration information for the services exposed via SOAP. ● /var/www/html/php_listeners The other is the configuration information for the listener. ● /opt/php_listeners Configure microservices
  15. 15. ● Installation Documentation ● UPEI Taverna Server Taverna Server
  16. 16. ● on centos ○ cd /opt/php_listeners ○ php listener.php ○ tail -f listener.log ● add a tiff a page to a book to trigger services. Demo microservices

×