some api delay questions

我在使用现货api下单接口下market订单的时候,我发现有时候我的接口耗时在100~500ms,但是平时都只是在30~50ms之间。我想确定下是什么原因导致的接口延迟:
我猜想的是这么两点:
1、短时间内的大量成交,导致撮合引擎内部产生延迟?
2、我的服务器发生了网络抖动?
另外,我的服务器使用的是asw ec2,部署在东京。
最后,我希望能够有什么办法或者思路来定位我的问题所在,并且解决这个问题。
蟹蟹~

when i use spot api create market orders, i find sometimes i’ll cost more than 100ms~500ms but i always just use 30~40ms. so, i want to make sure that the delay’s reason:

  1. because of a large number of transactions in a short time makes matchmaking engine’s delay?
  2. or maybe my network’s Chum?

by the way my server deploy in Tokyo node use the aws ec2

and what should i do to solve the problems?
thank u.

What if you use REST API to submit the request and get the order update from websocket?

thank u.
i really use this way for my limit orders. when my limit orders filled, i get order update from websocket, and this time i will use REST API and create a market order again.