Performance is measured on my 8 core 20GB RAM machine. When measuring I’m using 6x CPU throttle and slow 3G. In network tab check “Disable cache”. Enable https and http2 on local using devcert.

My nginx conf looks like following

server {
listen 80…



This is about using Magento 2 internal classes useful for building restapi client in your magento extension.


Oauth class will help you deal with REST authorization. Interesting function is `buildAuthorizationHeader` . Of course you should inject \Magento\Framework\Oauth\OauthInterface in your code instead of the class.


For building valid json bodies.


If you want to convert an object like order to array use.