Raised This Month: $128 Target: $400
 32% 

REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/09/13)


Post New Thread Reply   
 
Thread Tools Display Modes
Pavelas
Junior Member
Join Date: Oct 2016
Old 11-05-2020 , 03:42   Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/09/13)
Reply With Quote #81

It looks really amazing, but maybe someone could tell me, which method is more efficient? MySQL or REST API? The main question here, what's better for server performance? Thank you!
Pavelas is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Old 11-06-2020 , 05:27   Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/09/13)
Reply With Quote #82

I don't run any servers, so I don't know how it performs on a busy server, but I tested on a local server and was able to perform over 800 requests per second without noticing any performance issues. The extension also limits the number of requests it processes each frame, so even if you have several plugins performing hundreds of requests per second, it should not affect performance.

Also, this extension has been downloaded over 2000 times since the Weapon Stickers plugin was released, and I have not received any complaints.


If you're asking how this extension performs compared to MySQL, it depends. SourceMod can currently process maybe 25-30 queries per second, across all database connections. This extension can process over 700 requests per second on a single HTTP/2 connection. However, when using HTTP/1 each request uses its own connection, so it's much slower.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
I do not provide support in PMs. Please use the forum thread.
DJ Tsunami is offline
digin
Member
Join Date: Nov 2019
Old 11-06-2020 , 07:26   Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/09/13)
Reply With Quote #83

i use this extension on my servers for !vip, !agents, !tag, !chatcolors and others. thanks DJ Tsunami for making this extension
digin is offline
diller110
Junior Member
Join Date: Sep 2014
Old 11-23-2020 , 20:15   Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/09/13)
Reply With Quote #84

Is it possible to add methods to check value type?
Something like here.
diller110 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:57.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode