Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Amazon SimpleDB Developer Guide

You're reading from   Amazon SimpleDB Developer Guide Scale your application's database on the cloud using Amazon SimpleDB

Arrow left icon
Product type Paperback
Published in Jun 2010
Publisher Packt
ISBN-13 9781847197344
Length 252 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (16) Chapters Close

Amazon SimpleDB Developer Guide
Credits
Foreword
About the Authors
About the Reviewers
1. Preface
1. Getting to Know SimpleDB 2. Getting Started with SimpleDB FREE CHAPTER 3. SimpleDB versus RDBMS 4. The SimpleDB Data Model 5. Data Types 6. Querying 7. Storing Data on S3 8. Tuning and Usage Costs 9. Caching 10. Parallel Processing

Parallelizing SimpleDB requests


We can take advantage of the excellent support for concurrency available in SimpleDB by parallelizing our batch requests by multi-threading or using multiple processes to make requests in parallel. There are several different ways of parallelizing our requests using Python. We will look at the different ways of doing this in Python. We will be using the batch operation as an example to illustrate each threading example, but you can apply these principles with any of the SimpleDB operations:

  • Inserting items

  • Deleting items

  • Updating items

Parallelizing SimpleDB requests in Java

Java provides excellent support within the language for running operations concurrently. In this section, we will use the java.util.concurrent package to see how easy it is to insert multiple items concurrently into SimpleDB by using a threadpool. Recent versions of Java provide a ThreadPoolExecutor class that has all of the functionality that we need for our purpose. We will first instantiate...

lock icon The rest of the chapter is locked
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Amazon SimpleDB Developer Guide
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Modal Close icon
Modal Close icon