Hi, The RESTlets are scripts that allows us to ac...
# suitescript
u
Hi, The RESTlets are scripts that allows us to access NetSuite resources using token based authentication. However, there are concurrency limits. Suitelets are also scripts that allows us to do the same but there is no access validation/authentication. My question is that if we ignore the authentication, does suitelet script has some concurrency limit? How NetSuite handles this when there are too many of requests to a suitelet? Does it impact the process/scripts running inside of NetSuite? Does suitelets occupy the process queues available inside NetSuite? Thanks...
πŸ‘ 1
c
Just for future reference - don’t tag users in questions. They will answer it if they wish to. Everyone is a volunteer.
☝🏻 1
☝️ 5
u
@battk
s
Suitelets have authentication by default. Concurrency is for external callers, Suitelets should not consume 'processors'.
Suitelets should be subject to the same concurrency as RESTlets
s
I dont think suitelets can be treated as no-authentication restlets, I'm pretty sure a suitelet available externally - whilst it does not require TBA, wont accept non-browser based interactions I'm pretty certain the external suitelet cant be used as a webhook endpoint
s
As long as the caller meets the requirements for invoking a Suitelet, it doesn't matter what application it is. Indeed, a suitelet cannot know that the caller is a browser and not some other tool.
From 2017 not sure how much has been updated since
s
The concurrency model has changed a few years ago - maybe it was actually in late 2017?
c
You also need a pretty good reason for making a suitelet available without login. Netsuite is reallllllly cracking down on that with apps and whatnot if that's what you're building.
I only use them for triggering server-side scripting from client scripts (click a button and create a record so the record UE fires) and custom UI.
If you are finding you are running out of connections, you need to talk to netsuite and get a larger suitecloud+ license to give you more connections.
t
hey everything is legal if its not for an app πŸ˜†
c
you aren't wrong
b
SuiteScript 2.x Suitelet Script Type describes the concurrency limit for suitelets
its not actually enforced, there is no limit, you can go until your server runs out of resources to handle your request
although if you consistently abuse it and cause slowdowns, netsuite may investigate your account
πŸ‘€ 1
t
sounds like an easy fix with a UE on the employee record to disable / modify the code when a user with "@netsuite.com" gains access to the instance
πŸ˜‚ 2