SlideShare una empresa de Scribd logo
1 de 24
Descargar para leer sin conexión
Tango REST API newsTango REST API news
TangoRestServer newsTangoRestServer news
Waltz newsWaltz news
Tango REST APITango REST API
10/06/19 Igor Khokhriakov 3
new project structure
●
tango-controls/
– rest-api: only docs + lists all other known related
repos
– rest-api-java: Java reference stub classes
– rest-test-suite: specification compatibility tests
– rest-server (ex. mtangorest.server):
Java implementation
Tango Rest api + waltz news
Tango REST API v1.0 (rc5&rc6)Tango REST API v1.0 (rc5&rc6)
10/06/19 Igor Khokhriakov 6
●
Tango device model
– Tango host port is now optional matrix param:
/hosts/localhost[;port=10000]
– id field: {tango_host}/{device_name}/{member_name}
– host & device fields (attributes/commands/pipes etc)
– GET …/hosts is removed
– Bulk operations entry points:
● attributes & commands & pipes & devices
– /devices/tree?host=x&wildcard=*/*/*
– /{attribute}/info is now embedded in /{attribute}
10/06/19 Igor Khokhriakov 7
●
Wildcards
– GET /attributes/value?
wildcard=localhost/sys/tg_test/*/*
– GET /attributes/value?
wildcard=localhost/sys/tg_test/*/State&
wildcard=localhost/sys/tg_test/*/Status
– GET /attributes/value?
wildcard=localhost/sys/tg_test/1/State&
wildcard=localhost/sys/tg_test/1/Status
10/06/19 Igor Khokhriakov 8
●
Bulk write/execute
– PUT /attributes/value
[
{ “name”:”double_scalar_w”, “device”:..., “host”:..., “value”: 3.14 }
]
– PUT /commands
[
{ “name”:”DevDouble”, “device”:..., “host”:..., “input”: 3.14 }
]
10/06/19 Igor Khokhriakov 9
●
Cache-Control
●
Partitioning
●
If-Modified-Since
●
Improved Errors section
● /subscriptions
– new events mechanism based on SSE*
●
Security – does not require Oauth anymore
* https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events
Tango REST API v1.1 (v1.0 + subscriptions)Tango REST API v1.1 (v1.0 + subscriptions)
10/06/19 Igor Khokhriakov 11
●
subscriptions → dedicated entry point e.g.
http://hzgxenvtest.desy.de:8443/tango/subscriptions
●
event-stream – multiplexed stream of native
Tango events
Tango REST API rc4Tango REST API rc4
10/06/19 Igor Khokhriakov 13
●
Back-ports some v1.0 features:
– …/subscriptions
– …/devices/tree
– …/hosts/localhost/10000/devices/tree
●
Cache-Control
●
Partitioning
HTTP/2.0HTTP/2.0
only server configuration is requiredonly server configuration is required
hence is in rc4 & v1.1hence is in rc4 & v1.1
rest-server-1.14*rest-server-1.14*
* https://github.com/tango-controls/rest-server/releases/tag/rest-server-1.14
10/06/19 Igor Khokhriakov 16
●
Supports rc4 & v1.0
– evolution strategy: single server artifact → multiple
REST versions
●
Integration tests → proper coverage data
●
Deployment strategy: prefer .war
– .jar http/2.0 configuration is tricky:
ApacheTomcat 9 & Java 9 (Oops... Jtango)
ApacheTomcat 8.5 & native connector library
– Standard enterprise infrastructure: load balancing
10/06/19 Igor Khokhriakov 17
●
ex. mtangorest.server
●
transferred to tango-controls GitHub org
●
Latest release (as per May'19): 1.14:
– full v1.1 and rc4 support
– Multi level cache strategy:
binary response cache; ResponseCache (Partitioning);
Tango attribute value cache
– rc4 events using async response from Servlet 4.0
10/06/19 Igor Khokhriakov 18
●
Part of TangoSourceDistribution since 9.3.3
●
Apache 2.0 license
●
Dockerized!!!
Waltz v0.7.x*Waltz v0.7.x*
* https://github.com/tango-controls/waltz/releases
Live Waltz tour @PETRA IIILive Waltz tour @PETRA III
after lunchafter lunch
-OR--OR-
after General Tools sessionafter General Tools session
10/06/19 Igor Khokhriakov 21
●
UI
– Improved/redesigned
– Main views for attribute/command/pipe
– Manager (Astor like widget)
– support await in scripting console
●
Platform
– JS6 support
– Load widgets using JS6 modules
– Subscriptions
– SVG integration
* All requirements are gathered in the passed few months by interviewing beamline
scientists, observing and analyzing their work.
Tango Rest api + waltz news
TODO:TODO:
rest-api: v1.x – high level Tango APIrest-api: v1.x – high level Tango API
rest-server: Benchmark testsrest-server: Benchmark tests
waltz*: modernize and restructure +waltz*: modernize and restructure +
mobile versionmobile version
** basing on requirements gathered in the passed few monthsbasing on requirements gathered in the passed few months
by interviewing beamline scientists andby interviewing beamline scientists and observing their workobserving their work
Thank you!Thank you!
Questions?Questions?

Más contenido relacionado

Último

The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 

Último (20)

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Tango Rest api + waltz news

  • 1. Tango REST API newsTango REST API news TangoRestServer newsTangoRestServer news Waltz newsWaltz news
  • 3. 10/06/19 Igor Khokhriakov 3 new project structure ● tango-controls/ – rest-api: only docs + lists all other known related repos – rest-api-java: Java reference stub classes – rest-test-suite: specification compatibility tests – rest-server (ex. mtangorest.server): Java implementation
  • 5. Tango REST API v1.0 (rc5&rc6)Tango REST API v1.0 (rc5&rc6)
  • 6. 10/06/19 Igor Khokhriakov 6 ● Tango device model – Tango host port is now optional matrix param: /hosts/localhost[;port=10000] – id field: {tango_host}/{device_name}/{member_name} – host & device fields (attributes/commands/pipes etc) – GET …/hosts is removed – Bulk operations entry points: ● attributes & commands & pipes & devices – /devices/tree?host=x&wildcard=*/*/* – /{attribute}/info is now embedded in /{attribute}
  • 7. 10/06/19 Igor Khokhriakov 7 ● Wildcards – GET /attributes/value? wildcard=localhost/sys/tg_test/*/* – GET /attributes/value? wildcard=localhost/sys/tg_test/*/State& wildcard=localhost/sys/tg_test/*/Status – GET /attributes/value? wildcard=localhost/sys/tg_test/1/State& wildcard=localhost/sys/tg_test/1/Status
  • 8. 10/06/19 Igor Khokhriakov 8 ● Bulk write/execute – PUT /attributes/value [ { “name”:”double_scalar_w”, “device”:..., “host”:..., “value”: 3.14 } ] – PUT /commands [ { “name”:”DevDouble”, “device”:..., “host”:..., “input”: 3.14 } ]
  • 9. 10/06/19 Igor Khokhriakov 9 ● Cache-Control ● Partitioning ● If-Modified-Since ● Improved Errors section ● /subscriptions – new events mechanism based on SSE* ● Security – does not require Oauth anymore * https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events
  • 10. Tango REST API v1.1 (v1.0 + subscriptions)Tango REST API v1.1 (v1.0 + subscriptions)
  • 11. 10/06/19 Igor Khokhriakov 11 ● subscriptions → dedicated entry point e.g. http://hzgxenvtest.desy.de:8443/tango/subscriptions ● event-stream – multiplexed stream of native Tango events
  • 12. Tango REST API rc4Tango REST API rc4
  • 13. 10/06/19 Igor Khokhriakov 13 ● Back-ports some v1.0 features: – …/subscriptions – …/devices/tree – …/hosts/localhost/10000/devices/tree ● Cache-Control ● Partitioning
  • 14. HTTP/2.0HTTP/2.0 only server configuration is requiredonly server configuration is required hence is in rc4 & v1.1hence is in rc4 & v1.1
  • 16. 10/06/19 Igor Khokhriakov 16 ● Supports rc4 & v1.0 – evolution strategy: single server artifact → multiple REST versions ● Integration tests → proper coverage data ● Deployment strategy: prefer .war – .jar http/2.0 configuration is tricky: ApacheTomcat 9 & Java 9 (Oops... Jtango) ApacheTomcat 8.5 & native connector library – Standard enterprise infrastructure: load balancing
  • 17. 10/06/19 Igor Khokhriakov 17 ● ex. mtangorest.server ● transferred to tango-controls GitHub org ● Latest release (as per May'19): 1.14: – full v1.1 and rc4 support – Multi level cache strategy: binary response cache; ResponseCache (Partitioning); Tango attribute value cache – rc4 events using async response from Servlet 4.0
  • 18. 10/06/19 Igor Khokhriakov 18 ● Part of TangoSourceDistribution since 9.3.3 ● Apache 2.0 license ● Dockerized!!!
  • 19. Waltz v0.7.x*Waltz v0.7.x* * https://github.com/tango-controls/waltz/releases
  • 20. Live Waltz tour @PETRA IIILive Waltz tour @PETRA III after lunchafter lunch -OR--OR- after General Tools sessionafter General Tools session
  • 21. 10/06/19 Igor Khokhriakov 21 ● UI – Improved/redesigned – Main views for attribute/command/pipe – Manager (Astor like widget) – support await in scripting console ● Platform – JS6 support – Load widgets using JS6 modules – Subscriptions – SVG integration * All requirements are gathered in the passed few months by interviewing beamline scientists, observing and analyzing their work.
  • 23. TODO:TODO: rest-api: v1.x – high level Tango APIrest-api: v1.x – high level Tango API rest-server: Benchmark testsrest-server: Benchmark tests waltz*: modernize and restructure +waltz*: modernize and restructure + mobile versionmobile version ** basing on requirements gathered in the passed few monthsbasing on requirements gathered in the passed few months by interviewing beamline scientists andby interviewing beamline scientists and observing their workobserving their work