SAP ABAP, Fiori, Android和Hybris里的异步操作
ABAP
其實ABAP的編程范式相對其他語言比較簡單,沒有太多異步操作。除了STARTING NEW TASK可以實現異步調用。
Use ABAP Multi-Thread programming to deal with a real performance issue:
https://blogs.sap.com/2017/02/10/use-abap-multi-thread-programming-to-deal-with-a-real-performance-issue/
Fiori
我們做Fiori開發的時候,處理過performance的incident。一個simple operation的roundtrip number不能大于3。2個幾乎同時發出的異步操作算1個roundtrip。Fiori的best practice也是盡量用異步操作。
Android
成都Android開發團隊2011~2013參與了Customer Briefing app的開發。如果在UI線程里訪問了web resource,容易遇到ANR Android Not response的exception。
我記得我當時編程時只要在UI線程做這些事情,API調用會立即報錯。
Hybris
看Hybris log就知道了,Hybris服務end user請求通過一個線程池來完成,每個線程類似Netweaver的work process,用的仍是block IO.
這個bio的配置在server.xml里完成:
See stackoverflow discussion:
https://stackoverflow.com/questions/11032739/what-is-the-difference-between-tomcats-bio-connector-and-nio-connector
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的SAP ABAP, Fiori, Android和Hybris里的异步操作的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java and Jakarta - H
- 下一篇: android sina oauth2.