I have deployed my app to production. I am hosting the app on Amazon EC2.
I have noticed that the app runs really slow on production. Therefore I have created a performance test. It shows that the test runs almost 10 times slower after bundled and deployed to production than when run locally with meteor (i.e. dev mode). I can not understand what issue is. The test runs alot of database queries (both read and write) so it seems like the database is one issue.
I have made alot of tests, using different instance types (t2 large, m3 large etc.) on EC2 but that does not really make a big difference. I have even tried setting up the database on Atlas Mongo. That made some performance improvements but it still runs almost 4 times faster locally on a DEV environment!
I am running out of ideas. Any ideas what could be the issue here or did I config something wrong?