function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kzmpkzmp 

Apex and VisualForce vs. .NET or Java

Hi guys,

I will be building a SalesForce application which will take records (Upton several hundred thousand) out of salesforce pass them to an external webservice which will process them and return the results, which will be stored back in SalesForce.

I am wandering on advantages and disadvantages for building the application in Apex and VisualForce on with .NET and be hosted outside of SalesForce.

I have come to the following at the moment:

Building in .NET

    Advantages:

          - Easier to develop, more popular, much better IDE, stepping through code 

          - Easier to support - since it is hosted on your server you have full control and you can turn on debugging features and collect debugging information very easily and quickly. And you can fix and replace the app easily and quickly.

          - Faster to process a lot of records - you can use the salesforce data loader to export a large number of records, then process them in batch and use the salesforce batch API to upload the results back in batch.

     Disadvantages:

          - User interface will not look exactly the same as it would look if you develop it with VisualForce although with a good designer I think it will get very very close.

 

Building in Apex and VisualForce:

     Advantages:

           - User interface will look very familiar to users.

           - Integrated security model provided by SalesForce.

 

     Disadvantages:

           - You need a trained person who knows appexchnage to develop it.

           - Boy would it be difficult and time consuming to develop it compared to developing with VS and .NET or Java let say.

           - Cannot figure out how discovering and fixing a bug after a release would be done easily.

 

I am not sure on the following:

If developed in Apex would I need to use the SalesForce API ?

If I can avoid it my app will be available for people with lower editions than Enterprise which is quite and advantage.

Also is it possible to build such an application without using the API which will make it available for wider range of users ?

For processing batch records which will be faster .NET processing or Apex ?

I tend to think that for batch processing .NET will be faster since I will be able to get all records as a batch and upload them back as a batch.

 

Please help me know what you think on the above.

 

I appreciate your ideas on the above.

 

Thanks,

Kostadin Mitev

Abhinav GuptaAbhinav Gupta

As you have to send many records out of the system to external webservice. I would suggest leaving Apex, because Apex has 1 MB response limit and some connection timeout limits(max 60,000 milliseconds.) as well. 

 

One other thing, if you try to do WSDL2Apex over huge WSDLs, it fails because of number of chars limit per Apex class.

 

So if you feel, if you can survive well within these limits, then Apex is good, otherwise you can go for Java/.NET

kzmpkzmp

Hi Abhinav Gupta,

Thank you for your answer.

It was really helpful. I will be going for the .Net solution indeed.

 

Regards,

Kzmp

Abhinav GuptaAbhinav Gupta

I'm Glad that info was useful.

Latest update .. I was going thru the Winter'11 release notes.  Salesforce is going to revoke both these timeout & response size governor limits in next release. 

kzmpkzmp

Hey thanks for the update.

As a matter of fact I was just going over the same document explaining the new releases.

I wanted to ask you are you aware of any advantages disadvantages of native vs. composite apps in terms of editions supported. I am talking about Group and Professional editions mainly as the story is tricky there as I read ?

 

Also so far I managed to run a test with the APEX batch API processing my records one by one and I found out that it is extremely slow. for 14 000 records it took 1 hour and 26 minutes or so.

 

Thanks,

kzmp

Ramkumar G 4Ramkumar G 4
Hi Everyone,
I am new to salesforce i want to create Crud operation of RestAPI in salesforce, but i dont know where to create, and also i couldn't able to find the proper tutorials for beginners. Kindly share the resource or links if you know