100% found this document useful (1 vote)
9 views

Pro Microservices in .NET 6: With Examples Using ASP.NET Core 6, MassTransit, and Kubernetes 1st Edition Sean Whitesell instant download

The document is a promotional description for the book 'Pro Microservices in .NET 6' by Sean Whitesell, which focuses on developing microservices using .NET 6, ASP.NET Core 6, MassTransit, and Kubernetes. It outlines the benefits and challenges of microservice architecture, the structure of the book, and the intended audience, including developers and project managers. The book aims to provide practical insights and hands-on examples for building scalable and robust microservices applications.

Uploaded by

tostalolod
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
9 views

Pro Microservices in .NET 6: With Examples Using ASP.NET Core 6, MassTransit, and Kubernetes 1st Edition Sean Whitesell instant download

The document is a promotional description for the book 'Pro Microservices in .NET 6' by Sean Whitesell, which focuses on developing microservices using .NET 6, ASP.NET Core 6, MassTransit, and Kubernetes. It outlines the benefits and challenges of microservice architecture, the structure of the book, and the intended audience, including developers and project managers. The book aims to provide practical insights and hands-on examples for building scalable and robust microservices applications.

Uploaded by

tostalolod
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 43

Pro Microservices in .

NET 6: With Examples Using


ASP.NET Core 6, MassTransit, and Kubernetes 1st
Edition Sean Whitesell pdf download

https://ebookmeta.com/product/pro-microservices-in-net-6-with-
examples-using-asp-net-core-6-masstransit-and-kubernetes-1st-
edition-sean-whitesell/

Download more ebook from https://ebookmeta.com


We believe these products will be a great fit for you. Click
the link to download now, or visit ebookmeta.com
to discover even more!

Pro Microservices in .NET 6: With Examples Using


ASP.NET Core 6, MassTransit, and Kubernetes 1st Edition
Sean Whitesell

https://ebookmeta.com/product/pro-microservices-in-net-6-with-
examples-using-asp-net-core-6-masstransit-and-kubernetes-1st-
edition-sean-whitesell/

Beginning gRPC with ASP.NET Core 6: Build Applications


using ASP.NET Core Razor Pages, Angular, and Best
Practices in .NET 6 1st Edition Anthony Giretti

https://ebookmeta.com/product/beginning-grpc-with-asp-net-
core-6-build-applications-using-asp-net-core-razor-pages-angular-
and-best-practices-in-net-6-1st-edition-anthony-giretti/

C# 10 and .NET 6 – Modern Cross-Platform Development:


Build apps, websites, and services with ASP.NET Core 6,
Blazor, and EF Core 6 using Visual Studio 2022 and
Visual Studio Code, 6th Edition Mark J. Price
https://ebookmeta.com/product/c-10-and-net-6-modern-cross-
platform-development-build-apps-websites-and-services-with-asp-
net-core-6-blazor-and-ef-core-6-using-visual-studio-2022-and-
visual-studio-code-6th-edition/

Fractional-Order Electrical Circuit Theory (CPSS Power


Electronics Series) Zhang Bo

https://ebookmeta.com/product/fractional-order-electrical-
circuit-theory-cpss-power-electronics-series-zhang-bo/
The Trouble With Us (Forbidden Love #2) 1st Edition Kat
T. Masen

https://ebookmeta.com/product/the-trouble-with-us-forbidden-
love-2-1st-edition-kat-t-masen/

Beauty and the Assassin 1st Edition Nadia Lee

https://ebookmeta.com/product/beauty-and-the-assassin-1st-
edition-nadia-lee/

WWI Tales from the Trenches The Great War Series Book 1
1st Edition Daniel Wrinn

https://ebookmeta.com/product/wwi-tales-from-the-trenches-the-
great-war-series-book-1-1st-edition-daniel-wrinn/

The Canons and Decrees of the Council of Trent 1st


Edition Rev Fr H J Schroeder

https://ebookmeta.com/product/the-canons-and-decrees-of-the-
council-of-trent-1st-edition-rev-fr-h-j-schroeder/

Studying Complex Interactions and Outcomes Through


Qualitative Comparative Analysis: A Practical Guide to
Comparative Case Studies and Ethnographic Data Analysis
Markus Kröger
https://ebookmeta.com/product/studying-complex-interactions-and-
outcomes-through-qualitative-comparative-analysis-a-practical-
guide-to-comparative-case-studies-and-ethnographic-data-analysis-
Jill Enfield s Guide to Photographic Alternative
Processes Popular Historical and Contemporary
Techniques 2nd Edition Jill Enfield

https://ebookmeta.com/product/jill-enfield-s-guide-to-
photographic-alternative-processes-popular-historical-and-
contemporary-techniques-2nd-edition-jill-enfield/
Sean Whitesell, Rob Richardson and Matthew D. Groves

Pro Microservices in .NET 6


With Examples Using ASP.NET Core 6, MassTransit,
and Kubernetes
Foreword by Scott Hunter VP Director, Azure Developer Experience
Microsoft
Sean Whitesell
KIEFER, OK, USA

Rob Richardson
Gilbert, AZ, USA

Matthew D. Groves
Grove City, OH, USA

ISBN 978-1-4842-7832-1 e-ISBN 978-1-4842-7833-8


https://doi.org/10.1007/978-1-4842-7833-8

© Sean Whitesell, Rob Richardson, Matthew D. Groves 2022

This work is subject to copyright. All rights are reserved by the


Publisher, whether the whole or part of the material is concerned,
specifically the rights of translation, reprinting, reuse of illustrations,
recitation, broadcasting, reproduction on microfilms or in any other
physical way, and transmission or information storage and retrieval,
electronic adaptation, computer software, or by similar or dissimilar
methodology now known or hereafter developed.

The use of general descriptive names, registered names, trademarks,


service marks, etc. in this publication does not imply, even in the
absence of a specific statement, that such names are exempt from the
relevant protective laws and regulations and therefore free for general
use.

The publisher, the authors and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.

This Apress imprint is published by the registered company APress


Media, LLC part of Springer Nature.
The registered company address is: 1 New York Plaza, New York, NY
10004, U.S.A.
This book is dedicated to you, the reader. Writing good software is hard
enough. Learning and conquering the development of microservices is an
even greater challenge. I hope this book serves you well in your journey to
developing great solutions for your users.
Foreword
Software development is in the middle of a revolution. Moving away
from monolithic application development with a team working on a
large project that ships on a slow cadence to microservice based
development where the application is broken into smaller pieces, which
version independently, are built by smaller teams and ship on a fast
cadence. .NET 6 is part of the revolution of .NET that makes it the
perfect framework for building these microservice based applications.
.NET was re-imagined starting in 2016 to be the highest
performance full stack development framework running across Linux,
macOS and Windows on x86, x64, Arm32, Arm64 and M1 architectures.
It includes support for cross platform RPC with gRPC, support for API’s
with Web API and Minimal API’s and support for services with Worker
Template.
Sean, Rob, and Matt have been building microservices in .NET and
speaking on this form of development for many years. This book will
help you learn how to build modern applications with microservices
using the latest version of .NET.
I’m excited to see what you will build!

Scott Hunter
VP Director, Azure Developer Experience
Microsoft
Introduction
The microservice architecture breaks software into smaller pieces that
can be independently deployed, scaled, and replaced. There are many
benefits to this modern architecture, but there are more moving pieces.
In the olden days, we compiled the entire software product into one
piece and deployed it infrequently. Deployment was hard, so we opted
not to do it very often. With the advent of containers, deployment has
become much easier. We can now break our application into lots of
little pieces – microservices. When one microservice needs more
horsepower, we can scale up only this portion of the web property. If a
feature needs to work differently, we can deploy only this microservice,
avoiding the churn with the entire system.
With this power come some additional layers of complexity. In the
legacy monolithic software applications, we merely made a function call
if we wanted to call into another part of the system. Our internal
methods now have IP addresses, multiple instances, maybe load
balancers distributing the load, and many more moving pieces.
How do we discover the address of the microservice? How do we
scale to just the right level of availability without wasted cost? This is
the magic of microservices, and this is the purpose of this book. You’ll
learn how to design, architect, scale, monitor, and containerize
applications to build robust and scalable microservices.

Who Should Read This Book


In some respect, anyone involved with software projects related to
distributed architecture should read this book. Even if a software
project is not a distributed architecture but may become one, this book
will shed some light on understanding existing business processes that
may need to be handled by microservices.
From development managers to product owners to developers will
find this book useful in understanding many complexities of a
microservices architecture. Application architects and developers will
gain quick insight with the hands-on code samples. The step-by-step
coding approach covers examples with direct microservice calls as well
as by messaging communication.
Book Organization
The microservices architecture is multifaceted and complex. Chapter 1
covers many of the subjects involved in this architecture style. Chapter
2 covers the advancements of .NET 6. In Chapter 3, we use a fictional
story to help convey the purpose of breaking apart a monolithic
application to a microservices architecture. We cover using Event
Storming and Domain-Driven Design tenants to help understand
existing business processes to determine where and why to create a
microservice.
In Chapter 4, we cover direct communication with microservices.
This chapter is also where you begin creating microservices using
Visual Studio 2022 with .NET 6. Chapter 5 covers the messaging
communication style. Also, you will create more microservices that
communicate using MassTransit for messaging.
Chapter 6 covers breaking apart data from a centralized data store
to distributed data stores. We also cover Saga patterns for handling
transactions across multiple systems.
In Chapter 7, we cover testing the microservices using direct
communication. We also cover testing the microservices that
communicate using messaging. You will create the test projects for both
communication styles.
Chapter 8 covers hosting microservices in Docker containers as well
as using Kubernetes. By understanding containerization options, you
understand how to handle the scaling of microservices.
In Chapter 9, we cover health concerns for microservices. The
microservices developed in earlier chapters only have business logic.
This chapter covers logging concerns, gathering metrics, tracing, and
points for debugging.
Any source code or other supplementary material referenced by the
author in this book is available to readers on GitHub via the book’s
product page, located at www.apress.com/9781484278321. For more
detailed information, please visit http://www.apress.com/source-code.
Acknowledgments
There are challenges, and there are life goals. Writing this book has
certainly been an accomplishment of a life goal. I could not have done
this alone. There are people in my life that have given phenomenal
support, and I’m eternally grateful.
To the Lord for helping me through challenging times, especially the
ones I get myself into.
To my wife and biggest cheerleader, Barb, thank you for your
unceasing support. It is so much more than I deserve. You have been so
understanding of my goals and the challenges that come along with
them. To my daughter McKayla, you are my gem and are the reason I
fight hard to be a good dad. Remember, the best goals are worth
fighting for.
To Michael Perry, I can’t thank you enough. Your willingness to help
me is amazing. I appreciate our discussions, where I get to learn so
much from you. I’m thankful I got to learn from your book The Art of
Immutable Architecture. Details in your book really helped this book
and me as an architect.
To Floyd May, thank you so much for your friendship and our time
on the whiteboard discussing microservices. I really appreciate your
guidance.
To Phil Japikse, thank you so much for helping me get started with
this book project. I appreciate your guidance throughout this book.
To Josh Brown, thank you so much brother for helping to spur ideas
and the great discussions about databases.
To Rob Richardson and Matt Groves, thank you for helping me get
this book done. I appreciate being able to lean on your expertise.

—Sean Whitesell

I would like to thank the Lord whose inspiration I rely on daily. His
help has been instrumental in accomplishing this work.

—Rob Richardson
I’d like to acknowledge my patient wife Ali, Kevin and Mary Groves,
and all of my Twitch audience that helped me to learn this
microservices stuff.

—Matt Groves
Table of Contents
Chapter 1:​Introducing Microservices
Benefits
Team Autonomy
Service Autonomy
Scalability
Fault Isolation
Data Autonomy
Challenges to Consider
Microservice Beginning
Architecture Comparison
Microservice Patterns
API Gateway/​BFF
External Configuration Store
Messaging
Business Process Communication
Message Format
Transport
Testing
Test Pyramid
E to E
Service
Unit Tests
Automation
Deploying Microservices
Versioning
Containers
Pipelines
Cross-Cutting Concerns
Monitoring
Logging
Alerting
Testing the Architecture
Summary
Chapter 2:​ASP.​NET Core Overview
A Brief History of .​NET
Long-Term Support
Presentation Frameworks
Installing Requirements
Installing .​NET 6.​0 and ASP.​NET Core
Installing Visual Studio
Installing Visual Studio Code
.​NET 6.​0 at a Glance
MVC at a Glance
Routing
Controller
View
Model
ASP.​NET Core Middleware
ASP.​NET Core Web API
Razor Pages
Minimal APIs
Summary
Chapter 3:​Searching for Microservices
The Business
Domain-Driven Design
Domain
Subdomains
Ubiquitous Language
Bounded Contexts
Aggregates and Aggregate Roots
Event Storming
Setup
Color Coding
The Meeting
Seeing the Domains
Domain Models
Focus on Behavior
Domain Modelling
Decomposition
Becoming a Microservice
Summary
Chapter 4:​First Microservice
Interprocess Communication
API First Design
Transport Mechanisms
REST
gRPC
Other documents randomly have
different content
of our schools, estimated at 150,000. Indians under the care of the
Association, 13,000.

WANTS.
1. A steady INCREASE of regular income to keep pace with the
growing work. This increase can only be reached by regular and
larger contributions from the churches—the feeble as well as the
strong.
2. Additional Buildings for our higher educational institutions, to
accommodate the increasing numbers of students; Meeting Houses for
the new churches we are organizing; More Ministers, cultured and
pious, for these churches.
3. Help for Young Men, to be educated as ministers here and
missionaries to Africa—a pressing want.
Before sending boxes, always correspond with the nearest A. M. A.
office, as below:
New York H. W. Hubbard, Esq., Treasurer, 56 Reade Street.
Boston Rev. C. L. Woodworth, Dis’t Sec., Room 21 Congregational House.
Chicago Rev. Jas. Powell, Dis’t Sec., 112 West Washington Street.

MAGAZINE.
This Magazine will be sent, gratuitously, if desired, to the
Missionaries of the Association; to Life Members; to all clergymen
who take up collections for the Association; to Superintendents of
Sabbath Schools; to College Libraries; to Theological Seminaries; to
Societies of Inquiry on Missions; and to every donor who does not
prefer to take it as a subscriber, and contributes in a year not less
than five dollars.
Those who wish to remember the American Missionary Association in
their last Will and Testament, are earnestly requested to use the
following

FORM OF A BEQUEST.
“I bequeath to my executor (or executors) the sum of —— dollars in
trust, to pay the same in —— days after my decease to the person
who, when the same is payable, shall act as Treasurer of the
‘American Missionary Association’ of New York City, to be applied,
under the direction of the Executive Committee of the Association, to
its charitable uses and purposes.”
The will should be attested by three witnesses [in some States three
are required—in other States only two], who should write against
their names, their places of residence [if in cities, their street and
number]. The following form of attestation will answer for every
State in the Union: “Signed, sealed, published and declared by the
said [A. B.] as his last Will and Testament, in presence of us, who, at
the request of the said A. B., and in his presence, and in the
presence of each other, have hereunto subscribed our names as
witnesses.” In some States it is required that the Will should be
made at least two months before the death of the testator.

THE CONGREGATIONALIST
FOR 1881.
The publishers of The Congregationalist have never been better
prepared to make an entertaining and instructive paper for the
family than now. Our contributors embrace such names as

Prof. AUSTIN PHELPS,


ROSE TERRY COOKE,
D. D.,
Rev. J. T. DURYEA, D.
SUSAN COOLIDGE,
D.,
President S. C.
MARION HARLAND,
BARTLETT,
Rev. L. W. BACON, D. Rev. THEO. L.
D., CUYLER, D. D.,
Rev. WASHINGTON
Rev. W. F. CRAFTS,
GLADDEN,
Rev. GEO. LEON
GEO. E. WARING, Jr.,
WALKER, D. D.,
Mr. C. C. COFFIN, RAY PALMER,
JULIA C. R. DORR,
And many others who have attained a national reputation.

“HOW AND WHAT TO READ”


Is a topic on which we print several articles this year from Rev.
Washington Gladden, and other well-known writers.

“WITHOUT A HOME”
Is the name of a story by Rev. E. P. Roe, running through the
columns of The Congregationalist nine or ten months this season.
More than 200,000 copies of Mr. Roe’s books have been sold, a
fact which indicates the great demand there is for them.
Our Sabbath-school Department for 1881 is under the charge of
the Rev. A. F. Schauffler, of New York, who is known as one of the
most suggestive writers and thinkers on this subject in the
country.
Our Children’s Department is sustained by such writers as Mr. C.
C. Coffin, Ernest Ingersoll (on Natural History), W. J. Rolfe, Clara
Erskine Clement, and others equally eminent, and it will be found
entertaining and instructive to all, both to young and old.
A series of twelve articles or more, running through our columns
this year, entitled

“GREAT SUBJECTS,”
And from the pens of some of the most eminent thinkers in the
land, is destined to attract wide attention. Among the writers are
Ex-President Woolsey, Gen. J. R. Hawley, Hon. Dorman B. Eaton,
Benjamin Vaughan Abbott, Dr. Geo. M. Beard and Rev. Noah Porter,
D. D. The large space of four columns a week, on an average, is
devoted to our “Literary Department.” It is gotten up wholly in the
interest of our readers, and we receive frequent testimonies to its
value.
With seven persons on our regular editorial staff, including Rev. A.
H. Clapp, D. D., in New York, who, besides other matter, furnishes
a letter every week, the reader will find The Congregationalist in all
its departments fully abreast of the times. It touches subjects of
current interest to the religious public every week, not only by its
editorial articles, but by a great amount of paragraphs and short
matter such as all are glad to read. We offer no premiums, but
are now expending upon the columns of the paper itself what
otherwise might be required for that purpose. The amount of
money paid out sometimes in a single week to writers for The
Congregationalist now exceeds the sum expended in this way for
six months or a year a quarter of a century ago.
Specimen numbers sent free. Price, $3.00 a year.

W. L. GREENE & CO.,


1 Somerset St., Boston, Mass.

Brown Brothers & Co.


59 WALL STREET,
NEW YORK.
Buy and Sell Bills of Exchange on Great Britain and Ireland,
France, Germany, Belgium and Holland, Issue Commercial and
Travelers’ Credits, in Sterling, available in any part of the
world, and in Francs for use in Martinique and Guadaloupe.

Make Telegraphic Transfers of Money


Between this and other countries, through London and Paris.

Make Collection of Drafts drawn abroad on all parts of the


United States and Canada, and of Drafts drawn in the United
States on Foreign Countries.
Travelers’ Credits issued either against cash deposited or
satisfactory guarantee of repayment: In Dollars for use in the
United States and adjacent countries; or in Pounds Sterling for
use in any part of the world. Applications for credits may be
addressed as above direct, or through any first-class Bank or
Banker.

BROWN, SHIPLEY & CO.,


26 Chapel St., Liverpool.
BROWN, SHIPLEY & CO.,
Founder’s Court, Lothbury, London.

NEW AND IMPROVED STYLES THIS SEASON.

MASON BEST IN THE WORLD: winners of


highest distinction at EVERY GREAT
AND WORLD’S FAIR FOR THIRTEEN YEARS.
Prices, $51, $57, $66, $84, $108, to
HAMLIN $508 and upward. For easy payments,
ORGANS $6.30 a quarter and upward.
Catalogues free. MASON & HAMLIN
ORGAN CO., 154 Tremont Street,
Boston; 46 East 14th Street, NEW
YORK; 149 Wabash Ave., CHICAGO.

J. & R.
LAMB,
59 Carmine St.
NEW YORK.
ARTISTIC STAIN’D GLASS
MEMORIAL WINDOWS,
MEMORIAL TABLETS.
Sterling Silver Communion Services.
Send for Hand Book by Mail.
“IMPORTANT TO CLERGYMEN.”

PRINCE’S
Improved Fountain Pen.

As now improved, saves one-third the time.


"If I were bereft of it, I should feel myself bereft of my right
hand."—Rev. Lyman Abbott, Ed. Ch. Union.
Can be sent by mail in a registered letter. Send for circulars.
Manufactured by

JOHN S. PURDY,
212 Broadway, Cor. Fulton St., New York.

PAYSON’S

Indelible Ink,
FOR MARKING ANY FABRIC WITH A
COMMON PEN, WITHOUT A
PREPARATION.

It still stands unrivaled after 50 years’ test.

THE SIMPLEST & BEST.


Sales now greater than ever before.
This Ink received the Diploma and Medal at Centennial
over all rivals.
Report of Judges: “For simplicity of application and
indelibility.”

INQUIRE FOR

PAYSON’S COMBINATION!!!
Sold by all Druggists, Stationers and News Agents, and
by many Fancy Goods and Furnishing Houses.

W. & B. DOUGLAS,
Middletown, Conn.,
MANUFACTURERS OF

PUMPS,
HYDRAULIC RAMS, GARDEN ENGINES, PUMP CHAIN
AND FIXTURES, IRON CURBS, YARD HYDRANTS,
STREET WASHERS, ETC.
Highest Medal awarded
them by the Universal
Exposition at Paris, France,
in 1867; Vienna, Austria,
in 1873; and Philadelphia,
1876.

Founded in 1832.
Branch Warehouses:
85 & 87 John St.
NEW YORK,
AND

197 Lake Street,


CHICAGO.

For Sale by all Regular Dealers.


THE THIRTY-FIFTH VOLUME
OF THE

American Missionary.
1881.

Shall we not have a largely increased Subscription List


for 1881?
We regard the Missionary as the best means of communication with our
friends, and to them the best source of information regarding our work.
A little effort on the part of our friends, when making their own remittances,
to induce their neighbors to unite in forming Clubs, will easily double our list,
and thus widen the influence of our Magazine, and aid in the enlargement of
our work.
Under editorial supervision at this office, aided by the steady contributions of
our intelligent missionaries and teachers in all parts of the field, and with
occasional communications from careful observers and thinkers elsewhere, the
American Missionary furnishes a vivid and reliable picture of the work going
forward among the Indians, the Chinamen on the Pacific Coast, and the
Freedmen as citizens in the South and as missionaries in Africa.
It will be the vehicle of important views on all matters affecting the races
among which it labors, and will give a monthly summary of current events
relating to their welfare and progress.
Patriots and Christians interested in the education and Christianizing of these
despised races are asked to read it, and assist in its circulation. Begin with the
January number and the new year. The price is only Fifty Cents per annum.
The Magazine will be sent gratuitously, if preferred, to the persons indicated
on page 127.
Donations and subscriptions should be sent to
H. W. HUBBARD, Treasurer,
56 Reade Street, New York.

TO ADVERTISERS.
Special attention is invited to the advertising department of the American
Missionary. Among its regular readers are thousands of Ministers of the
Gospel, Presidents, Professors and Teachers in Colleges, Theological
Seminaries and Schools; it is, therefore, a specially valuable medium for
advertising Books, Periodicals, Newspapers, Maps, Charts, Institutions of
Learning, Church Furniture, Bells, Household Goods, &c.
Advertisers are requested to note the moderate price charged for space in its
columns, considering the extent and character of its circulation.
Advertisements must be received by the TENTH of the month, in order to secure
insertion in the following number. All communications in relation to advertising
should be addressed to

THE AMERICAN MISSIONARY ADVERTISING


DEPARTMENT,
56 Reade Street, New York.

Our friends who are interested in the Advertising Department of


the “American Missionary” can aid us in this respect by mentioning,
when ordering goods, that they saw them advertised in our
Magazine.

DAVID H. GILDERSLEEVE, PRINTER, 101 CHAMBERS STREET, NEW YORK.


Transcriber’s Notes
Teach-ng changed to Teaching in the table of Contents.
Obvious printer’s punctuation errors have been corrected.
Odd formatting of fraction (161 1-9 years) on page 114 has been
retained.
Inconsistent hyphenation retained, due to multiple authors.
Ditto marks replaced by the text they represent in order to facilitate
alignment in eBooks.
*** END OF THE PROJECT GUTENBERG EBOOK THE AMERICAN
MISSIONARY — VOLUME 35, NO. 4, APRIL, 1881 ***

Updated editions will replace the previous one—the old editions


will be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States
copyright in these works, so the Foundation (and you!) can copy
and distribute it in the United States without permission and
without paying copyright royalties. Special rules, set forth in the
General Terms of Use part of this license, apply to copying and
distributing Project Gutenberg™ electronic works to protect the
PROJECT GUTENBERG™ concept and trademark. Project
Gutenberg is a registered trademark, and may not be used if
you charge for an eBook, except by following the terms of the
trademark license, including paying royalties for use of the
Project Gutenberg trademark. If you do not charge anything for
copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such
as creation of derivative works, reports, performances and
research. Project Gutenberg eBooks may be modified and
printed and given away—you may do practically ANYTHING in
the United States with eBooks not protected by U.S. copyright
law. Redistribution is subject to the trademark license, especially
commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the


free distribution of electronic works, by using or distributing this
work (or any other work associated in any way with the phrase
“Project Gutenberg”), you agree to comply with all the terms of
the Full Project Gutenberg™ License available with this file or
online at www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand,
agree to and accept all the terms of this license and intellectual
property (trademark/copyright) agreement. If you do not agree
to abide by all the terms of this agreement, you must cease
using and return or destroy all copies of Project Gutenberg™
electronic works in your possession. If you paid a fee for
obtaining a copy of or access to a Project Gutenberg™
electronic work and you do not agree to be bound by the terms
of this agreement, you may obtain a refund from the person or
entity to whom you paid the fee as set forth in paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only


be used on or associated in any way with an electronic work by
people who agree to be bound by the terms of this agreement.
There are a few things that you can do with most Project
Gutenberg™ electronic works even without complying with the
full terms of this agreement. See paragraph 1.C below. There
are a lot of things you can do with Project Gutenberg™
electronic works if you follow the terms of this agreement and
help preserve free future access to Project Gutenberg™
electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright
law in the United States and you are located in the United
States, we do not claim a right to prevent you from copying,
distributing, performing, displaying or creating derivative works
based on the work as long as all references to Project
Gutenberg are removed. Of course, we hope that you will
support the Project Gutenberg™ mission of promoting free
access to electronic works by freely sharing Project Gutenberg™
works in compliance with the terms of this agreement for
keeping the Project Gutenberg™ name associated with the
work. You can easily comply with the terms of this agreement
by keeping this work in the same format with its attached full
Project Gutenberg™ License when you share it without charge
with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside
the United States, check the laws of your country in addition to
the terms of this agreement before downloading, copying,
displaying, performing, distributing or creating derivative works
based on this work or any other Project Gutenberg™ work. The
Foundation makes no representations concerning the copyright
status of any work in any country other than the United States.

1.E. Unless you have removed all references to Project


Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project
Gutenberg™ work (any work on which the phrase “Project
Gutenberg” appears, or with which the phrase “Project
Gutenberg” is associated) is accessed, displayed, performed,
viewed, copied or distributed:

This eBook is for the use of anyone anywhere in the United


States and most other parts of the world at no cost and
with almost no restrictions whatsoever. You may copy it,
give it away or re-use it under the terms of the Project
Gutenberg License included with this eBook or online at
www.gutenberg.org. If you are not located in the United
States, you will have to check the laws of the country
where you are located before using this eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is


derived from texts not protected by U.S. copyright law (does not
contain a notice indicating that it is posted with permission of
the copyright holder), the work can be copied and distributed to
anyone in the United States without paying any fees or charges.
If you are redistributing or providing access to a work with the
phrase “Project Gutenberg” associated with or appearing on the
work, you must comply either with the requirements of
paragraphs 1.E.1 through 1.E.7 or obtain permission for the use
of the work and the Project Gutenberg™ trademark as set forth
in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is


posted with the permission of the copyright holder, your use and
distribution must comply with both paragraphs 1.E.1 through
1.E.7 and any additional terms imposed by the copyright holder.
Additional terms will be linked to the Project Gutenberg™
License for all works posted with the permission of the copyright
holder found at the beginning of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files
containing a part of this work or any other work associated with
Project Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute


this electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the
Project Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if
you provide access to or distribute copies of a Project
Gutenberg™ work in a format other than “Plain Vanilla ASCII” or
other format used in the official version posted on the official
Project Gutenberg™ website (www.gutenberg.org), you must,
at no additional cost, fee or expense to the user, provide a copy,
a means of exporting a copy, or a means of obtaining a copy
upon request, of the work in its original “Plain Vanilla ASCII” or
other form. Any alternate format must include the full Project
Gutenberg™ License as specified in paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™
works unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or


providing access to or distributing Project Gutenberg™
electronic works provided that:

• You pay a royalty fee of 20% of the gross profits you derive from
the use of Project Gutenberg™ works calculated using the method
you already use to calculate your applicable taxes. The fee is owed
to the owner of the Project Gutenberg™ trademark, but he has
agreed to donate royalties under this paragraph to the Project
Gutenberg Literary Archive Foundation. Royalty payments must be
paid within 60 days following each date on which you prepare (or
are legally required to prepare) your periodic tax returns. Royalty
payments should be clearly marked as such and sent to the
Project Gutenberg Literary Archive Foundation at the address
specified in Section 4, “Information about donations to the Project
Gutenberg Literary Archive Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt that
s/he does not agree to the terms of the full Project Gutenberg™
License. You must require such a user to return or destroy all
copies of the works possessed in a physical medium and
discontinue all use of and all access to other copies of Project
Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project


Gutenberg™ electronic work or group of works on different
terms than are set forth in this agreement, you must obtain
permission in writing from the Project Gutenberg Literary
Archive Foundation, the manager of the Project Gutenberg™
trademark. Contact the Foundation as set forth in Section 3
below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on,
transcribe and proofread works not protected by U.S. copyright
law in creating the Project Gutenberg™ collection. Despite these
efforts, Project Gutenberg™ electronic works, and the medium
on which they may be stored, may contain “Defects,” such as,
but not limited to, incomplete, inaccurate or corrupt data,
transcription errors, a copyright or other intellectual property
infringement, a defective or damaged disk or other medium, a
computer virus, or computer codes that damage or cannot be
read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except


for the “Right of Replacement or Refund” described in
paragraph 1.F.3, the Project Gutenberg Literary Archive
Foundation, the owner of the Project Gutenberg™ trademark,
and any other party distributing a Project Gutenberg™ electronic
work under this agreement, disclaim all liability to you for
damages, costs and expenses, including legal fees. YOU AGREE
THAT YOU HAVE NO REMEDIES FOR NEGLIGENCE, STRICT
LIABILITY, BREACH OF WARRANTY OR BREACH OF CONTRACT
EXCEPT THOSE PROVIDED IN PARAGRAPH 1.F.3. YOU AGREE
THAT THE FOUNDATION, THE TRADEMARK OWNER, AND ANY
DISTRIBUTOR UNDER THIS AGREEMENT WILL NOT BE LIABLE
TO YOU FOR ACTUAL, DIRECT, INDIRECT, CONSEQUENTIAL,
PUNITIVE OR INCIDENTAL DAMAGES EVEN IF YOU GIVE
NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of
receiving it, you can receive a refund of the money (if any) you
paid for it by sending a written explanation to the person you
received the work from. If you received the work on a physical
medium, you must return the medium with your written
explanation. The person or entity that provided you with the
defective work may elect to provide a replacement copy in lieu
of a refund. If you received the work electronically, the person
or entity providing it to you may choose to give you a second
opportunity to receive the work electronically in lieu of a refund.
If the second copy is also defective, you may demand a refund
in writing without further opportunities to fix the problem.

1.F.4. Except for the limited right of replacement or refund set


forth in paragraph 1.F.3, this work is provided to you ‘AS-IS’,
WITH NO OTHER WARRANTIES OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of
damages. If any disclaimer or limitation set forth in this
agreement violates the law of the state applicable to this
agreement, the agreement shall be interpreted to make the
maximum disclaimer or limitation permitted by the applicable
state law. The invalidity or unenforceability of any provision of
this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the


Foundation, the trademark owner, any agent or employee of the
Foundation, anyone providing copies of Project Gutenberg™
electronic works in accordance with this agreement, and any
volunteers associated with the production, promotion and
distribution of Project Gutenberg™ electronic works, harmless
from all liability, costs and expenses, including legal fees, that
arise directly or indirectly from any of the following which you
do or cause to occur: (a) distribution of this or any Project
Gutenberg™ work, (b) alteration, modification, or additions or
deletions to any Project Gutenberg™ work, and (c) any Defect
you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new
computers. It exists because of the efforts of hundreds of
volunteers and donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project
Gutenberg™’s goals and ensuring that the Project Gutenberg™
collection will remain freely available for generations to come. In
2001, the Project Gutenberg Literary Archive Foundation was
created to provide a secure and permanent future for Project
Gutenberg™ and future generations. To learn more about the
Project Gutenberg Literary Archive Foundation and how your
efforts and donations can help, see Sections 3 and 4 and the
Foundation information page at www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-
profit 501(c)(3) educational corporation organized under the
laws of the state of Mississippi and granted tax exempt status
by the Internal Revenue Service. The Foundation’s EIN or
federal tax identification number is 64-6221541. Contributions
to the Project Gutenberg Literary Archive Foundation are tax
deductible to the full extent permitted by U.S. federal laws and
your state’s laws.

The Foundation’s business office is located at 809 North 1500


West, Salt Lake City, UT 84116, (801) 596-1887. Email contact
links and up to date contact information can be found at the
Foundation’s website and official page at
www.gutenberg.org/contact
Section 4. Information about Donations to
the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission
of increasing the number of public domain and licensed works
that can be freely distributed in machine-readable form
accessible by the widest array of equipment including outdated
equipment. Many small donations ($1 to $5,000) are particularly
important to maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws


regulating charities and charitable donations in all 50 states of
the United States. Compliance requirements are not uniform
and it takes a considerable effort, much paperwork and many
fees to meet and keep up with these requirements. We do not
solicit donations in locations where we have not received written
confirmation of compliance. To SEND DONATIONS or determine
the status of compliance for any particular state visit
www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states


where we have not met the solicitation requirements, we know
of no prohibition against accepting unsolicited donations from
donors in such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot


make any statements concerning tax treatment of donations
received from outside the United States. U.S. laws alone swamp
our small staff.

Please check the Project Gutenberg web pages for current


donation methods and addresses. Donations are accepted in a
number of other ways including checks, online payments and
credit card donations. To donate, please visit:
www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could
be freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose
network of volunteer support.

Project Gutenberg™ eBooks are often created from several


printed editions, all of which are confirmed as not protected by
copyright in the U.S. unless a copyright notice is included. Thus,
we do not necessarily keep eBooks in compliance with any
particular paper edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg
Literary Archive Foundation, how to help produce our new
eBooks, and how to subscribe to our email newsletter to hear
about new eBooks.

You might also like