I’m a Java developer and recently learned Ruby. And I have a concern about the ServiceObject pattern in RoR. I read an article here (https://medium.com/selleo/essential-rubyonrails-patterns-part-1-service-objects-1af9f9573ca1)
In this article whenever we need to call a service function we need to init service object and then invoke the call function.
Because I have a background in Java and Spring, I think a service object should be a singleton object like Spring Bean. So my question is whether implementing the service object like the above article is a good way and whether the continuous instantiation of objects, does it affects the performance of the application?