Pending transactions issue

I figured out that I do not receive all pending trasnactions. I compared received transactions from my app and Etherscan. For instance, my app read 2 transactions, but Etherscan showed more than 20 at the same period of time. I want to know why I cannot obtain all pending transaction.

I am using web3js lib and have typical subscription:
web3ws.eth.subscribe(‘pendingTransactions’, function (error, result) { }).on(“data”, function (transaction) {
// do some logic

Hi @Viacheslav. Welcome to the Infura community. check this tutorial out. It shows you how to use web3js to access the Infura websocket and get pending transaction information.