Platform-App-Development-Learn-To-Build-Robust-Scalable-And-Performant-Server-Side-Javascript-Applications-With-Node-Js - English-Edition-55500574
Platform-App-Development-Learn-To-Build-Robust-Scalable-And-Performant-Server-Side-Javascript-Applications-With-Node-Js - English-Edition-55500574
com
DOWLOAD EBOOK
ebooknice.com
ebooknice.com
https://ebooknice.com/product/sat-ii-success-
math-1c-and-2c-2002-peterson-s-sat-ii-success-1722018
ebooknice.com
(Ebook) RESTful Web API Design with Node.js 10: Learn to
create robust RESTful web services with Node.js, MongoDB,
and Express.js, 3rd Edition (English Edition) by Valentin
Bojinov ISBN 9781788623322, 1788623320
https://ebooknice.com/product/restful-web-api-design-with-node-
js-10-learn-to-create-robust-restful-web-services-with-node-js-
mongodb-and-express-js-3rd-edition-english-edition-11091994
ebooknice.com
ebooknice.com
ebooknice.com
ebooknice.com
Ultimate Node.js for
Cross-Platform App
Development
Ramesh Kumar
www.orangeava.com
Copyright © 2024 Orange Education Pvt Ltd, AVA™
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the
accuracy of the information presented. However, the information contained in
this book is sold without warranty, either express or implied. Neither the author
nor Orange Education Pvt Ltd or its dealers and distributors, will be held
liable for any damages caused or alleged to have been caused directly or
indirectly by this book.
ISBN: 978-81-96815-15-8
www.orangeava.com
Dedicated To
My beloved parents:
Late Shri Jai Prakash Narayan
Late Shanti Devi
and
My wife Arti, my son Aayansh, and my daughter Anaisha
About the Author
Ramesh Kumar is currently working as an Engineering
Manager at Moback Technologies India Pvt Ltd. He
possesses over 13+ years of experience in Full-Stack
Development based on ASP.NET, .NET Core, and popular
JavaScript frameworks like Angular/NodeJS. His
responsibilities include managing a team of 15 engineers,
and assisting the team prioritize items and deliver products
to stakeholders.
In addition, Ramesh contributes to development activities,
such as developing features, code reviews, and resolving
technical blockers. worked on building web applications
using Microsoft Technologies like C#, Asp.net Core, GIT, and
SQL Server. He has experience in front-end technologies like
jQuery, Angular, and React.
In a recent project, Ramesh worked on NodeJS backend
development. He has hands-on experience in DevOps tools
such as TFS, Git, Azure DevOps, and Webpack.
His work can be found on GitHub under the username
"rameshksh." He is highly self-motivated and eager to try
newer technologies and use them to build next-generation
software.
Ramesh has extensive experience working on Agile-based
projects and delivering them on time with the highest
quality product and has also worked on different cloud
platforms like Azure and GCP.
About the Technical Reviewers
Bhargav Bachina is a distinguished figure in the IT
industry, boasting a remarkable 12-year journey marked by
innovation and leadership in software architecture. His
career is a testament to his profound expertise across
technological stacks, from front-end and back-end
development to the complexities of cloud computing.
Bhargav's proficiency in Java, JavaScript, Python, and
Node.js has made him a versatile and adept navigator in the
world of software development.
As a visionary software architect, Bhargav is renowned for
his skill in architecting and implementing comprehensive
end-to-end solutions. His commitment to excellence and a
deep-seated passion for technology have been instrumental
in developing cutting-edge web and mobile platforms. His
approach, consistently driven by a quest for excellence, has
not only led to the success of numerous projects but also
established him as a thought leader in the field.
In his current role as the CTO of a startup in the educational
domain, Bhargav is on the brink of launching an innovative
project, adding yet another milestone to his illustrious
career. Furthermore, his contributions as a fractional CTO
have made him a sought-after guide and mentor in the
startup community. His insights and guidance are highly
valued by emerging startups that connect with him on
LinkedIn for his expertise.
Beyond his technical and leadership roles, Bhargav is a
prolific writer. His journey as a writer began five years ago
on Medium, where he has penned over 700 articles. These
writings have reached an audience of over 8 million
globally, resonating deeply within the tech community. His
articles have been pivotal in guiding and enlightening many,
earning him a significant following of 22k on Medium. His
influence extends to LinkedIn, where his contributions are
frequently lauded for their impact.
Bhargav's commitment to sharing knowledge is further
evidenced by his active presence on GitHub. With around
431 repositories, he has become a resource for many in the
tech community, evidenced by the regular stars and forks
his repositories receive. Bhargav Bachina's journey is more
than a career narrative; it's a source of inspiration and a
roadmap for aspiring IT professionals worldwide.
To learn more about Bhargav, please visit the following
sites:
Medium: https://medium.com/@bhargavbachina
GitHub: https://github.com/bbachi
YouTube: https://www.youtube.com/@bachinalabs
https://github.com/ava-orange-
education/Ultimate-Node.js-for-
Cross-Platform-App-
Development
The code bundles and images of the book are also hosted
on
https://rebrand.ly/ef14f9
In case there’s an update to the code, it will be updated on
the existing GitHub repository.
Errata
We take immense pride in our work at Orange Education
Pvt Ltd and follow best practices to ensure the accuracy of
our content to provide an indulging reading experience to
our subscribers. Our readers are our mirrors, and we use
their inputs to reflect and improve upon human errors, if
any, that may have occurred during the publishing
processes involved. To let us maintain the quality and help
us reach out to any readers who might be having difficulties
due to any unforeseen errors, please write to us at :
[email protected]
Your support, suggestions, and feedback are highly
appreciated.
DID YOU KNOW
Did you know that Orange Education Pvt Ltd offers eBook
versions of every book published, with PDF and ePub files
available? You can upgrade to the eBook version at
www.orangeava.com and as a print book customer, you
are entitled to a discount on the eBook copy. Get in touch
with us at: [email protected] for more details.
At www.orangeava.com, you can also read a collection
of free technical articles, sign up for a range of free
newsletters, and receive exclusive discounts and offers on
AVA™ Books and eBooks.
PIRACY
If you come across any illegal copies of our works in any
form on the internet, we would be grateful if you would
provide us with the location address or website name.
Please contact us at [email protected] with a link to
the material.
REVIEWS
Please leave a review. Once you have read and used this
book, why not leave a review on the site that you
purchased it from? Potential readers can then see and use
your unbiased opinion to make purchase decisions. We at
Orange Education would love to know what you think
about our products, and our authors can learn from your
feedback. Thank you!
For more information about Orange Education, please
visit www.orangeava.com.
Table of Contents
1. Getting Started with Node.js
Introduction
Structure
History of Node.js
Defining Node.js
Features of Node.js
Reasons for Node.js Popularity
Node.js versus Browser JavaScript
Installing Node.js
Installing NVM on Windows
Verifying NVM Installation
Some Core Concepts of Node.js
V8 Engine
Blocking versus Non-blocking Operations
Event Loop
Callback functions
Defining Callback Hell in Node.js
Ways to Avoid Callback hell
Promise
Async and Await
Choosing the Appropriate Approach
REPL Console
Getting Started with the REPL
Using NPM and Package.json
Init
Install
Installing Single Package
Update
Attributes of Package.json
The First Console Application Using Node.js
The First Web Application Using Node.js
Conclusion
Further Readings
Test Your Node.js Basic Knowledge
Answers
3. Introducing Express.js
Introduction
Structure
Express.js Overview
Key Features of Express.js
Benefits of Express.js
Installing Express.js
How Express.js Works
Adding Routes in Express
Request/Response Object
Using Middleware in Express
Application-level middleware
Router-level middleware
Error-handling middleware
Built-in middleware
Third-party middleware
Serving Static Files
Express Application Generator
Conclusion
Questions
Answers
6. Data Persistence
Introduction
Structure
Understanding ORM Tool
Introduction to Mongoose
Characteristics of Mongoose
Advantages of Mongoose
Disadvantages of Mongoose
Key Terminologies
Schema and Model
Connecting to MongoDB through Mongoose
Database connection
Basic Mongoose Operations
Create operation
Retrieve operation
Update operation
Delete operation
Real-world Example
Conclusion
Further Reading
7. Template Engines
Introduction
Structure
Templating engines
Working of template engines
Advantages of template engines
Disadvantages of template engines
Key components of template engines
HTML rendering with templates
Exploring the EJS template engine
Creating dynamic content using EJS
Conclusion
Further readings
8. Middleware Functions
Introduction
Structure
Introduction to Middleware
Importance of Middleware
Advantages of Using Middleware
Key Components of Middleware
Understanding the Next( ) Function
Using Inbuilt Middleware with Express
Types of Express Middleware
Application-level Middleware
Router-level Middleware
Built-in Middleware
Error Handling with Middleware
Third-party Middleware
List of Third-party Middleware
Creating our First Custom Middleware
Middleware Chaining
Conclusion
Further Readings
10. Socket.IO
Introduction
Structure
Exploring WebSocket programming
Introducing WebSocket
Usage of WebSockets
Advantages of WebSocket
Disadvantages of WebSocket
WebSocket versus HTTP
Establishing WebSocket Connections
WebSocket Protocol
Using Socket.IO with Express
Communication between Client and Server
Reasons to Choose Node.js and Socket.IO
Creating a Simple Chat Application
Conclusion
Further Readings
13. Debugging
Introduction
Structure
Introduction to Debugging
Importance of Debugging
Debugging Strategies
Debugging Techniques
Using Console.log
Using Node Inspector
Using Node.js debug module
Debugging an Express Application
Creating a Node.js application
Installing the Node.js debugger using “Nodemon”
Start debugging in VS Code
Run the debugger with Breakpoint
Conclusion
Further Readings
No sooner had Russia shaken off the yoke of the Tatars which
weighed upon her for three centuries, and left its mark so deeply
impressed as to be still visible, than, reformed and united, she began
to expand beyond her natural confines. In this she only imitated the
example of Spain, which a short time previously had been delivered
from the Moors and united under the sceptre of Ferdinand and
Isabella. Being essentially a continental country, without easy access
to the sea, and having no difficult frontier to bar her expansion to the
East, Russia turned her attention in that direction, and, defeating her
old masters, annexed the Tatar kingdoms of Kazan and Astrakhan.
This conquest extended her frontier to the immediate
neighbourhood of the Ural Mountains. In the second half of the
sixteenth century Tsar Ivan the Terrible found himself possessor of
vast but sparsely-peopled regions, at a great distance from his
capital, and extremely difficult of direct administration.
It is a remarkable coincidence that under these circumstances an
organization should have been formed in Russia almost
spontaneously with others of the same kind which were to prove of
such great utility in the West—i.e., a great colonizing company, under
Imperial charter. The Strogonofs, very rich merchants, who had
extended their sphere of trading operations as far as the basin of the
Kama, the great affluent of the Volga, addressed in 1558 a petition to
the Tsar, in which they demanded a concession of the lands in that
region, promising at the same time, in consideration of the grant, to
build a city, develop the resources, and defend the country against
the attacks of savage tribes. Ivan the Terrible acceded to their
request, accorded them divers trading privileges, and conferred upon
them the right to administer justice and to levy troops. Thus was
organized a regular chartered company analogous with the East
India Company and with those more recently formed in South Africa
and on the banks of the Niger. The company in question began the
conquest of Siberia.
The Strogonofs, once established on the Kama, experienced, as
generally happens when a civilized people finds itself in contact with
barbarous tribes, the necessity of extending further eastwards at the
expense of their Tatar neighbours, if only to protect themselves from
their depredations. In 1581 the Tsar gave them permission to employ
a celebrated Cossack pirate, Ermak Timoféef,[7] who seized the city of
Sibir, or Isker, then capital of Khan Kuchun, the principal Tatar chief
of Western Siberia. Six years later the present city of Tobolsk rose on
the site of Sibir.
We will not attempt to narrate the history of the conquest of
Siberia, which strongly resembles the taking of North America by
French pioneers at about the same time. When the Tatar tribes of the
West had been driven towards the Southern Steppes, the Cossacks
encountered little opposition from the poor hunters and fishermen
whom they found in the district. In summer these Cossack
adventurers navigated the rivers in canoes, whilst their winters were
spent in block-houses, or ostrogs, surrounded by palisades not
unlike the forts erected by the Hudson Bay Company. Soon they
became very numerous, being attracted from the more civilized parts
of Russia by the growing profits of the fur trade. In 1636 they had
reached the mouth of the Yenissei, and a year later arrived on the
banks of the Lena. In less than two years—that is, in 1639—they had
discovered the shores of the Okhotsk, and fifty years later the whole
continent had been traversed from end to end. In 1648 the Cossack
adventurers Alexief and Dezhnief doubled the eastern extremity of
Asia, and arrived at Kamtchatka, and in 1651 the Ataman Khabarof
established himself on the Amur, where he discovered other
adventurers, who had already descended this river in 1643. At this
juncture the Russians found themselves face to face with the
Manchus, who had just conquered China, and notwithstanding the
heroic defence of their fortress at Albazine on two occasions, they
were obliged in 1688 to abandon the middle and lower basins of the
Amur to the Sons of Heaven in accordance with the treaty of
Nertchinsk, a territory which they only reconquered from the
degenerate Chinese in 1858.
To the west as well as to the east of Siberia the Russian frontiers
remained scarcely altered until about the middle of the present
century. It was only in 1847 that the Tsar’s troops were able to cross
the arid zone of the Kirghiz Steppes. The policy of Peter the Great
was directed towards Europe, and his dream was to extend Russia
towards the West by the conquest of Constantinople—a fact which
accounts for the extinction of zeal on the part of Russia with respect
to her Asiatic possessions, which were now treated merely as penal
settlements or as fields for scientific investigation, whenever the
Sovereigns took it into their heads to become specially interested in
such matters. The increase of Imperial authority and the more
regular organization of the State had in the meantime subdued the
adventurous and enterprising spirit of the Cossacks, and that
particular class of men, half soldiers, half brigands, who had proved
themselves such hardy pioneers at an earlier epoch, now
disappeared, and in the middle of the eighteenth century Siberia was
opened as a field of colonization. In spite of the many obstacles
which the system of serfdom in Russia placed in the way of peasant
emigration, in 1851 the population of Siberia had reached 2,400,000,
a figure which, although not very large considering the immensity of
the country, was in excess of the population of Canada at the same
period, which numbered only 1,800,000 souls. From this point of
view the Russians had no reason to be ashamed of their colonization,
and, as a matter of fact, have none to-day. According to the census of
January, 1897, there were 5,731,732 Siberians living on a territory of
4,812,800 square miles, whereas in 1891 there were only 4,833,000
Canadians inhabiting the 3,721,800 square miles known as the
Dominion. The density of the population of Northern Asia is not
much inferior to that of British North America, and it must not be
forgotten that the conditions of life in Siberia are greatly inferior to
those of Canada.
A comparison of the natural conditions existing in the northern
regions of the old and the new world shows that they are nearly
identical. Both consist for the most part of vast expanses of flat
country, often covered with magnificent forests, and quite as
frequently barren. Siberia, like Canada, is irrigated by noble rivers,
which under a milder climate would constitute a superb network of
intercommunication; but unfortunately both countries are hampered
by an extremely rigorous climate, which imprisons these fine rivers
during many months of the year under an impenetrably thick coating
of ice. In the north of Siberia as well as of Canada the country is so
intensely cold as to render agriculture impossible. That part,
therefore, of both countries which is capable of exploitation is of
extremely limited extent, consisting both in Russian Asia and in
British North America of a ribbon-like zone some 3,720 miles in
length and from 250 to 300 in width.
If Siberia resembles Canada in some things, it must be confessed
that the latter country has every advantage in point of beauty and
position. In the first place, Siberia is more to the north; that portion
which approaches nearest to the Equator is situated about 43°
latitude—that is to say, a little more to the north than the extreme
south of Upper Canada, and, being on the Pacific, it is most distant
from European Russia, whereas the corresponding part of Canada is
the nearest to England, and washed by the Atlantic, the St. Lawrence,
and the great lakes. On the other hand, that part of Siberia which is
closest to Russia is covered to the south by barren steppes or by
mountains which confine the centres of civilization between 54° and
57° latitude. Moreover, whereas the coast of Canada on the Pacific
enjoys a much milder climate than the country situated on the other
side of the Rocky Mountains, the regions of Siberia which border the
Great Ocean are just as frigid as the rest of the country. The heights
which separate the basin of the Amur from that of the Lena are not
sufficiently elevated to form a barrier against piercing north winds,
and the Japanese Archipelago interposes itself between the coast and
the warm waters of the Black Current, which plays the same part in
the Pacific as the Gulf Stream in the Atlantic. Thus it happens that
the climate of Trans-Baikalia, where the rivers which, when united,
form the Amur take their source, is one of the most rigorous in
Siberia, and the sea is covered with ice in the port of Vladivostok,
which lies in the same latitude as Marseilles, whereas, opposite on
the American coast, seven degrees northward, the winters of British
Columbia are not more severe than those of Holland or the West of
Germany.
Notwithstanding its terrible climate, Siberia is not entirely
uninhabitable; indeed, even on the borders of the Arctic Ocean
humanity is represented by a few aboriginal Polar tribes, who
wander from place to place in sledges drawn by dogs, and usually
followed by a numerous herd of reindeer. The white man, however,
cannot endure the conditions prevailing in the extreme north, and it
is therefore necessary with a view to colonizing that one must learn
to distinguish between the different parts of Siberia.
The country has been judiciously divided into three zones, which
are, proceeding from north to south, the Tundra (or Arctic Moss)
Zone, the Great Forest Zone, and lastly the Agricultural Zone; the
south and south-west of the last-named includes the steppes, as well
as the Altai and Sayan Mountains. It would be impossible to trace a
line of exact demarcation between these different zones, for the
transition is extremely gradual; but, speaking generally, the land
situated north of 63° and 64° latitude is barren of all vegetation
excepting mosses and lichens. The subsoil is eternally frozen, but the
surface thaws in summer very slightly, thereby turning the country
into one vast marsh. The rivers remain frozen during nine months of
the year. Under these circumstances, cultivation is out of the
question. To the south-western limit of this zone, at Beriozof on the
Obi, the medium temperature all the year round is 5° C. below zero,
and in winter it goes down to 23°. The average in summer is 13·5°,
and that of the hottest month 18°, which is about the same as the
heat in Paris in July; but the warm weather lasts so short a time as to
be useless for agricultural purposes. To the east the climate becomes
rapidly severe, and at Verkhoyansk, a village situated in the Yakutsk
district, latitude 67°, one of the coldest regions in our hemisphere is
reached. The average throughout the year is 17° C. below zero; during
the three winter months it is 47°, and in January 49°. The minimum
is about 68° below zero. What characterizes this dreadful region is
that to the extreme cold in winter succeeds a very short but relatively
warm summer. The medium thermometrical reading during the
warm season is 13°, which rises to 15° for the month of July, during
which the mercury sometimes rises to 25° in the shade. The
difference between the temperature of the warmest and the coldest
months of the year is about 64°, that is to say, four times what it is in
Paris. It is very remarkable that in whatever direction you go from
Verkhoyansk, even northward, the climate becomes less rigorous,
thanks to the comparative mildness of the winter. As to the summer,
it scarcely merits the name, falling to 9° and even to 3° C. on the
borders of the Arctic Ocean.
In such unfavourable conditions, it is not surprising that the
1,600,000 square miles which comprise the Tundra Zone only
support between 60,000 and 80,000 inhabitants, mostly Samoyeds,
Ostiaks, Chuckchis, Lamuts, and other miserable Arctic tribes,
among whom live, or rather vegetate, a few Russian officials and a
fairly numerous group of exiles. The reindeer, whilst serving as a
means of transport, is also used as food, and its hide furnishes the
natives with clothing. There is no other domestic animal excepting
the powerful Polar dog which drags the sleighs. Whether this part of
Siberia will ever become of any ultimate use is at present hard to say,
but we may take it for granted that it will only be through the
discovery of a mineral wealth, the existence of which is unknown at
the present time, that the Polar Zone of Siberia will ever attract even
a temporary settlement of colonists.
To the south of the Tundra begin the Great Forests. At first the
trees are sparse and stunted, and only an experienced botanist can
recognise the distinctive characteristics of the larch; the trees,
however, become loftier as the climate moderates and the summer
lengthens. The larches, firs and pines rise to a great height, and
become at last so thick as to prevent the sun drying the damp soil of
the Taiga, or primeval forest. The banks of the rivers are invariably
covered by immense marshes, the most extensive of which are those
to be met with in the neighbourhood of the Obi and the Irtysh. When
the snow begins to melt, the inundations extend to considerably over
six miles on either side of the ill-defined river-banks. The climate of
this region is extremely severe, the winters frightfully cold, but the
summers fairly warm. The frost lasts only seven instead of eight
months; the subsoil, however, is eternally frozen, and agriculture is
only possible in certain spots and demands constant attention. It is
evident, however, that this zone, which covers about 2,320,000
square miles, that is to say about half Siberia, will never be able to
support a dense population; still, with its great forests it is much
more valuable than the more northern or Polar regions. If it is
possible to prevent these Siberian forests from undergoing the same
process of devastation which has befallen those of Northern America,
they may become of enormous value. Moreover, there exist in their
midst some very important gold-mines, especially near the Yenissei
and in the basin of the Olekma, one of the tributaries of the Lena, not
a few of which are already being satisfactorily exploited. There is
therefore hope that in due time these vast regions now covered with
forests and marshes may be able to support a much larger population
than the actual one, which does not exceed 700,000 souls, mostly
Russians and natives.
If we abstract from the total extent of Siberia the 1,600,000 square
miles of Tundra, and the 2,320,000 square miles of forest land, there
remain nearly 900,000 square miles which form the cultivable zone,
the only one which will ever be capable of supporting anything like a
dense population. This region is not perceptibly distinguishable from
that of the forests by any marked change in the landscape, unless it
be to the west, where the great green trees that usually flourish in
milder climes form an agreeable contrast to the everlasting pines and
firs. Then, again, the presence of cereals is very noticeable, the late
summer being of sufficient length to enable wheat, barley and oats to
ripen. So long as the seed remains under the snow it matters little
how intense the cold may be above; but when once the snow melts it
becomes absolutely necessary for the heat to be sufficiently great
during a prolonged period to enable the grain to germinate, and
above all it is necessary that the autumnal frosts should not occur
before the corn has had sufficient time to ripen. At Nertchinsk in
Trans-Baikalia the winter is often much more rigorous than at
Beriozof on the Obi, and yet corn ripens in the neighbourhood of the
first-named town, for the simple reason that the temperature
between May and September, although not many degrees higher,
remains equable much longer. It is rather to the brief period during
which the sun has any power than to the intensity of the heat or the
excess of cold that may be attributed the difficulty of rendering these
extreme northern regions of any agricultural value. Notwithstanding
that the cultivable zone of Siberia is so extremely limited, it covers an
area five times the size of France and equal to half the cultivable
sphere of Russia in Europe, which is also afflicted with glacial and
sterile zones. This more fortunate section of Siberia may, and
doubtless will, offer for a long time to come an admirable field for
Russian emigration.
CHAPTER II
THE LAND OF SIBERIA AND ITS
INHABITANTS
Siberia a prolongation of Russia in Europe—Marked resemblance
in scenery and climate between the two countries—
Insignificance of the indigenous population, especially towards
the West—Facilities of colonization—Preponderance of the
Russian element in the agricultural zone—Indigenous
elements: Polar tribes diminishing; Mongol population
increasing, but much more slowly than the Russian—Asiatic
immigration to the east of the cultivable zone—Heterogeneous
elements imported from Europe—Jews and Raskolniks.
After crossing the beautifully wooded valleys and the chain of hills
known as the Ural Mountains, the traveller arrives at Cheliabinsk,
situated in the Great Plain, and can scarcely believe that 1,200 miles
of railway separate him from Moscow, so striking is the resemblance
between the scenery around him and that of Central Russia, notably
in the Governments of Tula and Riazan. In the open spaces rise tufts
of delicate verdure, beyond which, here and there, appear the gray
outlines of some village, consisting of rows of wooden houses
surrounded by fields. The only striking difference between the
appearance of this country and Central Russia consists in the
predominance of the birch between the Ural and the Obi. For nearly
1,200 miles no other tree shades the absolutely flat country. It is the
same with the wild flowers, among which I noticed the Kaborski
tchaï, with its long pink spiral blossoms, which recall those of the
digitalis. It is not surprising that a Russian territory bearing such a
singular resemblance to the mother country should prove attractive
to Russian emigrants. The winter here, however, is undoubtedly both
longer and colder; the summer is a little hotter, and the mosquitoes
much more troublesome; but, on the other hand, land is freer, and
the peasant is no longer confined in the very narrow space granted in
the old country to his father at the time of the emancipation of the
serfs, and which, at his death, he has been obliged to share with his
brothers. If one is surprised to notice during the first few days’
journey by the Trans-Siberian Railway so few villages, the reason is
not far to find. The line passes a little to the south of the colonized
region, and borders the insufficiently-watered steppes where the
Kirghiz graze their cattle. From time to time the traveller perceives in
the plain the circular huts and even the tents of these nomads, and
not unfrequently at the stations he may meet with a number of them,
with their beady black eyes, their yellow complexions, and their
closely-shaven heads contrasting picturesquely with the fair locks
and long yellow beards of the red-shirted Mujiks. A little to the
north, after passing the Obi, the Kirghiz disappear, although the
town of Tomsk still possesses a mosque, said to be the most northern
in the world.
It is estimated that these Tatars do not exceed 90,000. The
majority profess Islamism, whilst a few have been converted to the
Orthodox faith, and a smaller proportion still remain pagans. Only a
fraction dwell in the towns. Besides this Tatar tribe, some 20,000
Mongols, called Kalmucks, inhabit the Altai Mountains. In the north
may still be found other aborigines of a very inferior type, known as
Ostiaks. They are supposed to be of Finnish origin, and do not exceed
40,000 in number, and are exclusively engaged in hunting and
fishing. It is stated that at one time they were fairly civilized, but they
have been gradually driven back by the Russians into the Arctic and
sterile regions, and have become decimated by drink and other vices,
the unfortunate result of contact with a superior race. Further north
of the forest-line and the Tundra region wander a few Polar tribes
called Samoyeds, who, owing to the extremely arid nature of the soil
and the rigour of the climate, have never come into contact with
European civilization. There are about 20,000 of them, and owing to
the unfavourable social and climatic conditions under which they
exist, it is not likely that they will increase. The purely Russian
population, to whom the agricultural zone almost exclusively
belongs, forms about nineteen-twentieths of the 3,356,000
inhabitants of Western Siberia, which itself contains three-fifths of
the population of all Siberia.
The richest section of the Government of Tobolsk consists of a
narrow band of land running between the marshes of the northern
regions and the sterile steppes of the southern. At Tomsk this
cultivable zone widens when it passes the Obi, and the character of
the scenery changes to pleasant hills and valleys, in which latter the
earth is still sufficiently thick and rich to entirely cover the rocky
formation below. The leaf-bearing trees are finer, and are
interspersed with splendid specimens of Siberian fir and the
extremely picturesque Siberian cedar-tree. Occasionally these trees
group themselves together, and form a sort of wood or plantation; at
other times they grow singly along the roadside, being thus
cultivated in order to supply sleepers for the railway or as superior
fuel. The fields are full of beautiful flowers, and the general
appearance of the country is that of a fine park, forming a very
agreeable contrast to the monotonous Barabinsk Steppe, with its
infrequent and stunted birches. The plateau which stretches between
the two rivers Tom and Chulym, affluents of the Obi, at a height of
between 800 and 900 feet above the level of the plain, is extremely
fertile, the vegetation being most varied, and the whole region is
vastly superior in point of picturesqueness to any hitherto visited.
The valley of the Yenissei, dominated to the east by mountains and
traversed by the magnificent river, is extremely beautiful. The water
runs rapidly, is remarkably clear, and in more than one place the
majestic stream widens to over 1,000 yards.
Once the traveller has passed the Yenissei, he leaves the tedious
plains behind him, and finds himself among pleasant hills and
valleys, which are rapidly becoming highly cultivated. The post-road,
which crosses from the west to the east, from Tiumen, at the foot of
the Ural, to Stretensk on the Amur, sometimes follows the course of
the rivers, and at others rises to a considerable height above them.
On either side rise veritable walls of gigantic Siberian pines, with red
trunks, sombre verdure, interspersed by magnificent larches of a
lighter shade of green and of more regular shape, and by fir-trees and
cedars, whose cones contain those little seeds which the Siberians
are so fond of chewing. On the banks of the more important rivers,
and at every ten to twenty miles’ distance, the traveller now passes
numbers of little towns and villages, surrounded by arable land,
which form, however, but very insignificant oases in the midst of
these interminable forests. It is, however, along this post-road, in the
valley of the Yenissei, and on the banks of two or three other rivers,
that almost the entire population of Central Siberia is concentrated.
Here, as elsewhere, the Russian element predominates; for out of the
570,000 inhabitants of the government of Yenissei there are not
more than 50,000 natives, who, moreover, live principally in the
forests to the north.
The population of the Government of Irkutsk includes about
500,000 inhabitants, of whom 100,000 are Buriats, mostly
shepherds and farmers. They were originally Mongols, and still
practise Buddhism, and live principally on the slopes of the Sayan
chain of mountains, which runs close to the Chinese frontier. To the
east of the great Lake Baikal, which is 440 miles in length by 30 to
60 in width, and which by reason of its mountainous shores recalls
the lakes of Scotland, is a region that contains the only really
beautiful scenery in Siberia. This section of the country has always
entertained close relations with China. Trans-Baikalia in former
times supplied the Emperors at Peking with their finest game. The
whole district of the Verkhne-Udinsk, comprising the basin of the
Selenga, the principal affluent of the Baikal, is frequently and not
inappropriately called Russian Mongolia. On the summit of the
Ahmar Dabam, a chain of mountains which dominates Lake Baikal, I
perceived for the first time a fetish-tree with its branches bedecked
with parti-coloured rags. On the eastern slope I also discovered a
Lamasery. The scantily cultivated plateau to the north, which is
watered by the Vitim, a tributary of the Lena, was, it appears, not
populated at the time of the arrival of the Russians, and even to-day
it only contains a few villages peopled by wretched Mujiks. This
region before the annexation of the right bank and of the lower valley
of the Amur was used as a sort of military encampment. At the
present time it is governed by a military régime, whose
administration is concentrated in the hands of a Governor, invariably
a general in the army. Of the 670,000 inhabitants, one-third are
natives, one-third peasants, or inhabitants of its gloomy little towns,
and the other third consists of Cossacks, who are only
distinguishable from the peasants by wearing a yellow band on their
caps and trousers. Instead of paying taxes, they have to submit to
certain military obligations. Although they are Cossacks by name and
by race, they possess none of the brilliant military qualities which
distinguish their European kinsmen. The two territories annexed by
Russia in 1858 at the expense of China, the Province of the Amur,
and the southern portion of the Littoral Province—the only one
which is of the least value—are scarcely inhabited, and were even less
peopled at the time of the arrival of the Russians, when they
possessed not more than 10,000 Manchus, and about as many
natives, engaged in hunting and fishing, and belonging to several
declining tribes. The Manchus have remained and are prospering;
the other tribes are gradually passing away. Some 20,000 or 30,000
Korean and Chinese emigrants have settled in the neighbourhood of
Vladivostok. The Russian immigration, however, forms at least five-
sixths of the 112,000 inhabitants of the Province of the Amur, and
more than two-thirds of the 214,000 of the coast province, of whom
30,000 natives live in the Arctic regions, where the whites leave
them in peace. The newly-acquired Chinese territory includes at least
140,000 Russians out of the 175,000 inhabitants. It must, however,
be remembered that this remarkable majority is mainly due to the
concentration of troops which has taken place since the Chino-
Japanese War, which so profoundly modified the political condition
of the Far East.
The following table is formed from official sources—chiefly from
the census taken on January 28, 1897, and marks the area and the
total population of the nine Siberian provinces:
Area of
Natives and
Square Total Agricultural
other
Miles. Population. Zone, Square
Asiatics.
Miles.
Tobolsk 536,600 1,438,655
180,000 270,800
Tomsk 328,000 1,917,527
Yenissei 987,400 567,807 45,000
193,400
Irkutsk 280,800 501,237 100,000
Yakutsk 1,535,900 283,954 250,000
Trans-
229,800 669,721 200,000 139,200
Baikalia
Amur 172,900 112,396 18,000 104,000
Littoral 214,940
Island of 741,400 70,000 147,000
25,495
Sakhalin
Total 4,812,800 5,731,732 863,000 854,400
The southern agricultural region of Siberia, in contradistinction to
the frozen zone to the north, is mainly inhabited by European
settlers. The proportion of these over the native population is
greatest in the west, and decreases towards the east, where, however,
it still remains superior by about two-thirds, so that we need not
hesitate to conclude that out of the 5,000,000 people living on this
long strip of land, more than four million and a half are of European
origin. Nevertheless, it must not be forgotten that the indigenous
Mongol and Turki population, which is immensely superior to the
poor tribes of fishermen and hunters who wander about the northern
zone, does not diminish, but continues to increase, much less
rapidly, however, than the Russians, who are constantly being
reinforced by emigration. Fortunately the feeling between these two
distinct elements is excellent; the Russians, being of Oriental
extraction, do not hold those racial prejudices which are so marked
among the Anglo-Saxons. The religious question, which is of course
an obstacle to any attempt at a fusion between the Orthodox and the
Buddhist population, is also not very intense or intricate. The
Russian is essentially tolerant, in opposition to his Government,
which is the reverse. The Orthodox emigrants have no objection to a
Pagoda or a Lamasery being erected alongside of their own churches
and monasteries. I remember seeing, while travelling, from
Cheliabinsk to Omsk, the Metropolitan of the last-named town, who
happened to be in the train, get out at a certain station to visit a
church which was being built, and to bestow his benediction upon a
crowd of Mujiks who had assembled for the purpose of receiving it.
Whilst the ceremony was in progress, a few feet further on five Tatar
travellers had stretched their carpets, and, with their faces turned
Meccawards, were going through the elaborate gymnastics connected
with Mussulman devotion. The Mujiks, who were crowding forward
to kiss their priest’s hand, never dreamt of disturbing the
Mohammedan worshippers, but watched them quite respectfully. I
doubt very much whether in any part of Europe three centuries ago,
when the populace was not more developed in the intellectual sense
than are these poor Mujiks, such a scene of tolerance could ever have
been witnessed. The Russian Government accords the utmost liberty
to its subjects in Asia in matters of religion. The origin of Russian
official intolerance in Europe is in the main purely political, and if it
considers Buddhists and Mussulmans in Siberia less objectionable
than Catholics and Protestants, it is simply because the followers of
these divergent creeds are the representatives of former and very
dangerous enemies, and are, moreover, perpetually endeavouring to
impose their doctrine upon anyone with whom they come into
contact.
The Russian colonization of Siberia has been carried out without
the aid of any other European nationality. There are only a few
hundred other Europeans settled in the country, the greater number
of whom are French people. I was much amused at the little station
at Sokur, about nine leagues from the Obi, to find a buffet kept by a
Frenchwoman, a peasant who had married a Bessarabian, and who
had only been in Siberia a year, after having, however, spent several
in Southern Russia. Her buffet was arranged with a greater degree of
taste and comfort than those in charge of the Russians, who,
however, keep everything scrupulously neat and clean. The worthy
lady had forgotten her fluent French, but had not yet acquired fluent
Russian. At Tomsk I fell in with another Frenchwoman, who kept a
bookshop, and in nearly all the towns along the great post-road at
Irkutsk, Blagovyeshchensk, Khabarofsk, and Vladivostok, I found
French shopkeepers, some of whom had been thirty years in the
country. They seemed to entertain a distinct preference for
photography.
Now that Siberia is at last thrown open to civilization, foreigners
will, of course, become much more numerous, and already many
engineers are to be found in various parts of the mining districts; but
for all this, I do not think that at any period the Russian colony will
be greatly influenced thereby.
We may, therefore, conclude that, from the ethnological point of
view, as well as from the geographical, Siberia is merely a
prolongation of Russian Europe, or of what is known as Greater
Russia. It is true that a few heterogeneous elements exist of the same
sort as those to be met with in Russia itself: Poles and Germans from
the Baltic provinces, and the descendants of exiles, or even exiles
themselves; and thus it comes to pass that in all the larger towns, at
Tomsk, Krasnoyarsk and Irkutsk, Catholic and Lutheran churches
abound. On the other hand, there are synagogues in nearly all the
secondary towns. Israel is fully represented in Siberia, and the little
town of Kainsk between the Omsk and the Obi is popularly known as
the Jerusalem of Siberia. There are also about 100,000 Raskolniks,
followers of a reform which took place in the liturgy of the Orthodox
Church in the seventeenth century. This, however, is, needless to say,
a purely Russian contingent. The Raskolniks exist in every part of
Siberia, but in the province of the Amur they form about a tenth of
the population, and are also very numerous in Trans-Baikalia. They
are mainly the descendants of people belonging to this particular
sect, who were originally exiled from Russia in the eighteenth
century. Their chief peculiarity consists in their love of temperance
and horror of every sort of innovation. Nothing would induce them
to take even a cup of coffee or tea. In our time the members of
certain curious sects, that of the Eunuchs, for instance, are exiled
into Siberia, and confined to a village in the territory of the Yakutsk,
in the Tundra Zone. According to the belief of these eccentric
persons, Napoleon I. was a reincarnation of the Messiah, and they
believe he rests in the sleep of death on the shores of Lake Baikal
until a time when an angel shall awaken him and place him at the
head of an amazing host destined to establish the reign of God in all
parts of the world. The Raskolniks, owing to their temperate habits
and their industry, are generally considered to be a very valuable
element in the population of the country.
CHAPTER III
AGRICULTURAL SIBERIA AND THE RURAL
POPULATION
Enormous preponderance of the rural and peasant population in
Siberia—Siberian Mujiks—Their rude and primitive manner of
life—Excellent quality of the land, and backward methods of
cultivating it—Mediocre and irregular manner of raising
cereals—The necessity and difficulty of improving agricultural
operations—The absence of large and enterprising ownership
in Siberia a disadvantage.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebooknice.com