Skip to main content
1-Visitor
November 26, 2019
Question

Comparing Expression widget with Service.

  • November 26, 2019
  • 1 reply
  • 1743 views

Hello All,

 

I used an expression widget to do one action at the mashup level.  I can also use a service to do the same action in the same mashup. 

I just want to know which method is the best practice method, and why?

 

Can anybody help me to find this?

 

Regards

Sugumar R

 

1 reply

1-Visitor
November 26, 2019

Hi @Sugumar_5656 ,

 

It would be better practice to use a service instead of the expression widget. Purely because of visibility and scalability.  You don't want to have to go into a mashup to see if something is happening and it is not easy to duplicate else where so it would depend on your user case.

 

If you use a service you are not dependent on a specific mashup and it is easy to duplicate on other things or templates.

1-Visitor
November 27, 2019

Hi @AndreaSteyn 

 

Thank you for your reply.

I just want to know about the performance. not about the scalability and visibility.

 

Do you have any idea about performance?

1-Visitor
November 27, 2019

Hi @Sugumar_5656 ,

 

I haven't tested the performance between the two. If you haven't already perhaps testing each would be an option. The inspect tool (F12) in the chrome browser allows you to see the time each service/action takes in a mashup which could help quantify the difference in performance.