Async processing in Kentico

#Kentico development #.NET Core #Kentico Kontent

SHARE

 
Sometimes I can hear notes of skepticism about Kentico, especially from .NET developers, that Kentico can't build modern client side application like SPA which will meat high standards of nowadays UX. In this post I'm going to deny those blames and show Kentico possibilities in this direction.

 
REST Service
So I'm going to start from the sweet part: REST service. Kentico REST service is really flexible and gives you access to all objects and pages within the system and when talking all, I do not mean all standard, but any custom page type, custom table and any objects from custom modules. 

Retiving data with REST service
Kentico REST service allows you to pass a lot of different parameters when requesting data: columns, top n, where and many others which makes data retrival process really efficient. REST service returns either XML or JSON responses. The last one is very convenient for comsuming by javascript frameworks.

Security
First of all Kentico allows you to configure what type authentication you'd like to use for the REST service. Most likely you'll use Forms authentication for web site. Also it allows you to specify whether you want to access pages or object with REST service as well as you might specify which page types or classes exactly you want to access. You might allow only read access. With Forms authentication you may allow or deny some role to access particular section of your web site or object and system will handle this appropriately. Also you should not worry about SQL injections, as Kentico is secured from such.

Comsuming REST service
You are free to use any known javascript framework on the client in order to establish communication with server, or might go even with pure javascript. Recaling from my personal experience Knockout might be a good option to build view model and jQuery AJAX to handle communication with server. Angular JS is  also good and it does not require jQuery as it has it's own module $resource, where you might build something like URL routing, which allows you to process all types of requests as well as any object you need, which is really flexible and convenient. 

Drawbacks
The only drawback I can think of is fact that you can request only one object per request, no joins are available, no views are accessible with REST service. It might be a pain when you'd like to get a structure, e.g. user along with user settings. This example is not the most complex, sometimes you might need to retrieve really complex structure. You might send several request from the web page, which is not convenient, but possible.     


Please leave your questions or suggestions in blog comments.
 

Author

Check other articles

Bitsorchestra
5 5

What our clients say

Bits Orchestra team are outstanding developers‚Äč. They listen carefully to our business needs and easily turns our business objectives into a well thought out and executed development effort. Roman is very bright and definitely the most capable developer that has worked on our site. He is not only a Kentico expert but has successfully tackled other complicated development assignments demonstrating expertise in both front and backend development. Roman takes initiative to suggest enhancements that make site maintenance easier while improving the customer experience. The team is very responsive to our work requests and has great follow up. They have also worked very business partners and this has reflected positively on our company. Roman is a true partner for us and a tremendous asset to our organization. We will continue to work with them and would highly recommend Roman and his team for your development needs. He and his team will exceed your expectations!
 Alan Lehmann
Alan Lehmann
President at In energy sector

What our clients say

The Bits Orchestra team does excellent work. They are always available and I appreciate our frequent calls and screen-shares together. Their dedication to the projects and knowledge of Kentico is outstanding. They truly care about the quality of their work, and became a part of our team easily!
Shena Lowe
Shena Lowe
Managing Partner at Consensus Interactive

What our clients say

We hired Roman for a Kentico analysis project and have been very satisfied. He is very skilled and professional. We are looking to hire him and his team again on future projects.
Sylvain Audet
Sylvain Audet
CEO at MyDevPartner.com

What our clients say

Roman and team have taken over an existing Kentico EMS site for a large US Oil Company. So far, they have handled every single request that we have thrown at them and these were diverse, challenging, often bespoke, usually urgent and almost daily, over the last 11 months. Their work is of an extremely high quality, they are capable, quick and we have great confidence in the support that we are getting.
Jon Hollis
Jon Hollis
Head of Web Development at confidential

What our clients say

Bits Orchestra team was very helpful, they had a good understanding of the brief and deep knowledge of the system. They were always keen to provide advice and recommendations that benefit the project substantially.
Ramon Lapenta
Ramon Lapenta
Senior Front End Developer at Cyber-Duck Ltd