I am new to AWS. I want to understand what is a good way to poll SQS for messages. I found many posts about long/short polling but not much discussion on how to implement it. Is an infinite while loop with wait a good way to poll SQS?
P.S. This is for a school project and I am not allowed to use AWS lambda, cloudwatch, etc; only SQS/S3/EC2 for the entire application.